benilla-re systems structs docs

CGCharacterModelBase::TurnTo

function · ui · primitive

Address
0x505bb0 · 159 bytes, up to 0x505c4e
Signature
void __thiscall (CGCharacterModelBase *this, float angle)
Meaning
Plays a shuffle toward the angle, latches the turn, sets the deadline and stores the facing
Confidence
verified, proof one
Finding
ui/playermodel#turning-the-model

Finding: Turning the model in ui: PlayerModel, DressUpModel and TabardModel

SetRotation(angle) plays a shuffle animation toward the angle, latches the turn and stores the angle as the frame's facing. When the model's data is resident it compares the old facing with the new: old below new plays animation 12 (ShuffleRight), old above new plays 11 (ShuffleLeft), and equal or NaN plays 0 (Stand). The play is skipped if that id is already armed on key bone 0, so a held direction arms once. Reversing replaces the shuffle at once, restarting it. Sending the same angle again plays Stand. The latch is set to 1, the deadline to now + 100 ms and the facing is stored on every path.

The derivation is in the doc.

Callers 1

Callees 4

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