Skip to content

VfxPhysicsFollowTerrainModifier

16.6

Class Documentation

Edit documentation

A physics modifier that keeps the particles at a fixed height above the ground. It runs on each step after the integration. It reads the terrain height, sets the particle's world height to that height plus HeightOffset, and moves the particle's position in its reference frame by the same amount.

The correction is a displacement, so it gives the particle no vertical velocity. A particle that walks over a slope follows the slope, and its other motion continues unchanged.

Properties

0xc3c071f0

Flag = false
Edit documentation

Where the terrain height is read. When set, the height is read once per step at the emitter's position and used for every particle. When clear, it is read per particle at the particle's own world position.