benilla-re systems structs docs

CM2Model::SetReferenceFrame

function · models · orchestration

Address
0x718870 · 150 bytes, up to 0x718905
Signature
void __thiscall (CM2Model *this, const NTempest::C44Matrix *frame)
Meaning
Sets or clears a loaded instance's reference frame, moving its emitters into or out of it, then its children's
Confidence
verified, proof one
Finding
models/model#reference-frame

Finding: Reference frame in models: the instance

An instance can live in a moving frame, the world matrix of the transport its owner rides. SetTransportFrame(m) copies m into +0x13c and makes it the frame; a null m clears the frame. When a loaded instance gains a frame, its particles and ribbon vertices are moved into the frame's space by its inverse; when it loses one, they are moved back by the frame. Changing one frame for another moves nothing. Children with a resolved attachment take the same frame, an attached child copies its parent's on every animate, and the emitters receive it as their frame.

The derivation is in the doc.

Callers 1

Callees 2

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