Description
The RateOverDistance
property of the ParticleEmitter
class specifies the number of particles to emit per 100 units of distance moved. This property is useful for creating particle effects that are dependent on the movement of the emitter, such as trails or smoke that follow a moving object.
Usage
To use the RateOverDistance
property, simply set it to a desired value within the range of 0 to 1000. This value determines how many particles will be emitted for every 100 units of distance the emitter moves. A higher value will result in more particles being emitted over the same distance.
Example
// Example of setting the RateOverDistance property
ParticleEmitter emitter = new ParticleEmitter();
emitter.RateOverDistance = 50.0f; // Emit 50 particles per 100 units moved