benilla-re systems structs docs

CParticleEmitter2::IntegrateParticle

function · models · primitive

Address
0x7b2680 · 597 bytes, up to 0x7b28d4
Meaning
Moves a particle one step under wind, emitter motion, gravity and drag; returns 0 to kill it
Confidence
verified, proof one
Finding
models/particles#particle-motion
Test
models::particle_integrate_difftest, models::particle_spin_integrate_difftest

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.

Callers 2

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.