benilla-re systems structs docs

s_particleVelocityEpsilon

global · models

Address
0x81d86c · 4 bytes, up to 0x81d86f
Type
float
Meaning
Holds 1e-8, under which a particle velocity component becomes 0
Confidence
verified, proof one
Finding
models/particles#particle-motion

Finding: Particle motion in models: particles

One step of a particle, in order: while its age is under the emitter's wind time, wind times dt is added to its velocity; with flag 0x40000 its position follows the emitter's displacement, except on its first step; it moves by dt·v with gravity g giving z += dt·vz − 0.5·g·dt² and vz −= dt·g; drag removes min(dt·drag, 1) of the velocity. A velocity component whose magnitude falls under 1e-8 becomes 0. With flag 0x800 the step kills a particle moving away from the emitter's origin.

The derivation is in the doc.