benilla-re systems structs docs

TransformVector4

function · cmath · primitive

Address
0x7bcb40 · 140 bytes, up to 0x7bcbcb
Signature
NTempest::C4Vector * __fastcall (NTempest::C4Vector *out, const NTempest::C4Vector *v, const NTempest::C44Matrix *m)
Meaning
Multiplies a four-component row vector by a 4x4 matrix
Confidence
inferred
Finding
models/emission#spawn-space
Test
terrain::portal_screen_rect_difftest, models::particle_quad_expand_stretched_difftest, cmath::transform_vec4

Finding: Spawn space in models: emission

Without flag 0x100 the new position goes through the emitter matrix and the velocity through it as a direction, so the particle lives in world space. With flag 0x20000 it then asks the scene's ground callback for the height below it and, when answered, sits at that height plus its current size. With flag 0x100 both stay in the emitter's space. Last, with flag 0x400, the emitter's velocity times 1 + S·variation adds to the particle's velocity.

The derivation is in the doc.

Callers 10

Callees 0

None by a direct call or jump.

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