benilla-re systems structs docs

CParticleEmitter2::TransformParticles

function · models · primitive

Address
0x7b5e60 · 245 bytes, up to 0x7b5f54
Signature
void __thiscall (CParticleEmitter2 *this, const float *m)
Meaning
Moves the live particles' positions and velocities of an emitter and its children through a matrix
Confidence
verified, proof one
Finding
models/particles#frame-change
Test
models::orient_velocity_difftest, models::transform_particles_difftest

Finding: Frame change in models: particles

TransformParticles(m) moves an emitter's particles into another frame: each live particle's position +0x0 goes through m (0x7bcc60) and its velocity +0x10 through the 3×3 alone, then each child takes the same call. The particles are the 0x20-byte ones at +0x3c, or the 0x40-byte model particles at +0x4c when +0x28 is set. Nothing else changes: not a model particle's orientation +0x20, nor the emitter's last position +0x248, velocity +0x258 or matrix. The velocity is ((m0·vx + m4·vy) + m8·vz, (m9·vz + m1·vx) + m5·vy, (m10·vz + m6·vy) + m2·vx) at 53 bits, each component rounded once from the old velocity.

The derivation is in the doc.

Callers 1

Callees 1

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