CGCharacterModelBase::UpdateTransform
function · ui · primitive
- Address
0x505c50· 92 bytes, up to0x505cab- Signature
void __thiscall (CGCharacterModelBase *this)- Meaning
- Rebuilds the root transform, then arms Stand once a turn has ended, and clears the latch
- Confidence
- verified, proof one
- Finding
- ui/playermodel#the-turn-timer
Finding: The turn timer in ui: PlayerModel, DressUpModel and TabardModel
Each paint of a pane rebuilds the root transform and then ends a turn: if no rotation was sent since the
previous paint, the deadline has passed (strictly), and the model's bone 0 has a nonzero id armed, it
arms Stand with a random variation and zeroes the deadline. The latch is cleared on every paint. While a
rotate button is held, Model_OnUpdate sends a rotation per frame, so the deadline moves forward and the
latch is set each paint, and the shuffle runs until about 100 ms plus one to two paints after the last
call.
The derivation is in the doc.
Callers 1
Callees 4
- OsGetAsyncTimeMs core
- CM2Model::GetKeyBoneAnimId models
- CM2Model::PlayAnimation models
- SimpleModelUpdateTransform ui
Calls and jumps by a bare address, from tables/calls.tsv.