benilla-re systems structs docs

CParticleEmitter2::Advance

function · models · primitive

Address
0x7b5880 · 395 bytes, up to 0x7b5a0a
Meaning
Advances an emitter by a time, in 0.1 s substeps for long steps
Confidence
verified, proof one
Finding
models/particles#update
Test
models::substep_count_bias_difftest, models::substep_floor_arg_difftest, models::substep_remainder_difftest, models::substep_tangent_difftest

Finding: Update in models: particles

Update(dt, matrix, camera, frame) stores the distance from the emitter's position to the camera in a global for the spawn rate, keeps the last position, sets the frame of the emitter and its children, and with |dt| < 2.384186e-7 only sets its flag 0x80. With flag 0x40000 it derives its displacement this frame scaled by clamp(|d|/dt · a + b, 0, 1). With flag 0x400 it accumulates time and, past 1/30 s, derives a velocity from its motion. It then advances, and places model particles.

The derivation is in the doc.

Callers 3

Callees 3

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