CParticleEmitter2::IntegrateModelParticle
function · models · primitive
- Address
0x7b28e0· 223 bytes, up to0x7b29be- Meaning
- Turns a model particle by its spin over a step, then moves it as a particle
- Confidence
- verified, proof one
- Finding
- models/particles#model-particles
- Test
models::particle_spin_integrate_difftest
Finding: Model particles in models: particles
An emitter whose record names a model emits 0x40-byte particles that each carry a model instance.
At birth the particle takes its orientation from the spawn matrix, scaled by 1/|row 0| when row 0
is not of unit length, and a spin vector of min + U·range on x and (1 + U)·range on y
and z, each component's sign flipped at random under flag 0x8000; its instance is created on
first need. Each step turns the orientation by |ω|·dt about ω when |ω| exceeds 1e-4, then
moves the particle as any other. Each frame every particle's instance animates with the owner's
view, colours and alpha and draws with the owner's lighting record.
The derivation is in the doc.
Callers 1
- CParticleEmitter2::Step models
Callees 2
- CParticleEmitter2::IntegrateParticle models
- ParticleQuatMultiply models
Calls and jumps by a bare address, from tables/calls.tsv.