CM2Model::GetKeyBoneAnimState
function · models · primitive
- Address
0x711fe0· 172 bytes, up to0x71208b- Meaning
- Copies a key bone's animation id, variation, time, speed and timing stamps
- Confidence
- verified, proof one
- Finding
- animation/units#track-states
- Test
models::query_attach_event_difftest
Finding: Track states in animation: unit tracks
GetTrackStates(mount, body, keyBone) (0x5fe1f0) fills three 7-dword states with GetKeyBoneAnimState (0x711fe0):
the mount model's bone 0 when a mount exists and is loaded, the body model's bone 0, and the body model's key bone when
+0xd5c is not −1. A state holds the bone's requested id +0xf8, variation +0xfc, position
ftol(float(now − lo) · speed) + offset, speed, lo, hi and latch +0xc0. A state whose latch is nonzero, or whose track is
absent, is rewritten to id −1, variation −1, position 0 and speed 1.0. A track reads as armed from the latch, not from +0xa4.
The derivation is in the doc.
Callers 9
- AnimatedHandlerSetState objectlayer
- AnimatedHandlerOnGroundPass objectlayer
- CGUnit_C::PlayFollowOnAnimation objectlayer
- CGUnit_C::GetTrackStates objectlayer
- CGUnit_C::PlayAnimation objectlayer
- CMissile::ArriveWithoutTarget objectlayer
- CMissile::ArriveMiss objectlayer
- PlayBowPull objectlayer
- CM2Model::SetBaseTransformConformed models
Callees 3
- __ftol crt
- M2LookupIndex models
- CM2Model::WaitForShared models
Calls and jumps by a bare address, from tables/calls.tsv.