One commonly used feature is the movement of grass around the player. This feature is currently only available for Built-In out of the box. Our target will be replicating the sample scene Grass Interactions (Built-in), therefore it is recommended to import it and play around with the different used components.

Furthermore, it is recommended to read about the Displacement Particle and about Displace with movement in Vegetation Renderer.

Basic Requirements

Every item that should move the grass around it needs to have a Particle System with the Displacement Particle shader assigned to it.

By default, the Grass Interactions scene includes a prefab with the required configuration. Drag and drop the prefab into your object, and properly align and scale it with your object. The idea is to place it at the bottom, near the feet, slightly above the ground, and roughly the circular size of your player.

A particle system that is too low or too high will cause the grass to not move properly (or at all).

Asset dropped

Particle aligned

Furthermore, it is recommended to configure the layer of the particle system to be an unrendered layer. To do so, first assign a dedicated layer to the particle system.

And ensure that the camera doesn’t render that layer.

This will make the particle systems invisible to the camera, but still visible to the components that require them to move the grass.

Enabling It

To ensure that the particles move the grass, we need to enable certain flags inside the Vegetation Renderer

Player Center should be set to the main player. The grass will move around the player for any objects that contain the previously mentioned particles, within a maximum distance defined by Displace Distance.

The higher the distance, the greater the range between the furthest particle and the player, but also the lower the resolution.

It is recommended to keep the default distance of 100 units, which allows any surrounding particles within that range to bend the grass at a high enough quality. Finally, Cull Mask should be the laayer where the particle system is!

With that, our grass will bend around the player!

Final Result