benilla-re systems structs docs

CM2Model::PlayAnimation

function · models · primitive

Address
0x7121a0 · 1607 bytes, up to 0x7127e6
Meaning
Starts or stops an animation on a key bone, with variation, repeats, speed and a blend from the last
Confidence
verified, proof one
Finding
models/animation#playing-an-animation
Test
models::anim_fade_difftest, models::keyframe_ratio_difftest, models::keyframe_timing_difftest, models::rate_reciprocal_difftest

Finding: Playing an animation in models: animation

PlayAnimation(keyBone, id, variation, offset, speed, blend, primary) first calls the done callback for an animation that ends unfinished. Id −1 stops the key bone, fading over 150 ms when it blends. Otherwise it resolves the id, picks the variation (−1 draws one by probability), and fills the primary slot, or the blend slot when not primary, with a repeat count drawn between the sequence's minimum and maximum, the speed negated for a reversed id and zeroed for a held one. A non-primary play fades out over the sequence's length end − start, at rate 1/(end − start) and scale 0.75.

The derivation is in the doc.

Callers 54

Callees 8

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