CM2Model::SetTransportFrame
function · models · orchestration
- Address
0x718910· 77 bytes, up to0x71895c- Signature
void __thiscall (CM2Model *this, const float *matrix)- Meaning
- Copies a transport matrix into the instance and makes it the reference frame, or clears the frame
- 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 5
- MovingTransportHandlerOnTick objectlayer
- TransportHandlerOnTick objectlayer
- CGUnit_C::OnModelLoaded objectlayer
- CMovement::SetTransportGuid collision
- CMovement::SwitchTransport collision
Callees 1
- CM2Model::SetReferenceFrame models
Calls and jumps by a bare address, from tables/calls.tsv.