benilla-re systems structs docs

CParticleEmitter2::InitModelParticle

function · models · primitive

Address
0x7b2420 · 594 bytes, up to 0x7b2671
Meaning
Finishes a spawned model particle: orientation from the spawn matrix, random spin vector, model created on need
Confidence
verified, proof one
Finding
models/particles#model-particles
Test
models::partfinalize_normalize_basis9_difftest, models::partfinalize_normalize_quat4_difftest, models::partfinalize_spawn_random_axes_difftest, models::partfinalize_spawn_sign_flip_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 0

None by a direct call or jump.

Callees 4

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