CM2Model::GetAttachmentMatrix
function · models · primitive
- Address
0x712de0· 233 bytes, up to0x712ec8- Meaning
- Returns an attachment's bone matrix moved to the attachment and taken into the scene
- Confidence
- verified, proof one
- Finding
- models/model#attachments
- Test
models::attach_fold_712de0_difftest
Finding: Attachments in models: the instance
Attach(parent, id) takes an instance off the animate list, stores the parent and id, resolves
the id to the parent's attachment index (0xffff while the parent loads) and links it first among
the parent's children. An attached instance animates through its parent. GetAttachmentPosition
transforms the attachment's offset by its bone matrix and the scene matrix.
The derivation is in the doc.
Callers 2
- CGUnit_C::ScaleQuestMarker objectlayer
- CMissile::StickInUnit objectlayer
Callees 4
- M2LookupIndex models
- CM2Model::WaitForShared models
- CM2Model::EnsureAnimated models
- MultiplyMatrixDispatch d3dx
Calls and jumps by a bare address, from tables/calls.tsv.