GenDistance
Generator. Generates particles based on the distance traveled by the emitter.
Each time the emitter moves a specified distance, a burst of particles is emitted. The generator interpolates the exact emission position along the emitter's path for smooth results.
This generator is ideal for trail effects where particle density should be proportional to movement speed.
Properties & inputs:
- Distance (input | property): Distance the emitter must travel to trigger one particle burst.
- Start Phase (property): Phase offset from 0 to 1. If 1, the first particle is emitted immediately. If 0, the emitter must travel the full distance first.
- Burst (property): Number of particles generated per emission event.
Outputs:
- Burst Amount (float): Number of particles in the current burst.
- Burst Pos. (float): Position of a particle within the burst, in the range [0; 1].