benilla-re systems structs docs

CM2Model::Animate

function · models · primitive

Address
0x714260 · 17703 bytes, up to 0x718786
Meaning
Computes an instance's bone matrices and animated colours, textures, lights, emitters and children
Confidence
verified, proof one
Finding
models/animation#sequence-time
Test
animation::m2_animate_difftest

Finding: Sequence time in models: animation

Each frame a bone with a primary sequence computes its time. For a looping sequence it is start + (ftol((now − startStamp)·speed) + offset) mod (end − start), or start for an empty range. A sequence with flag 1 plays once: at or past its end stamp the time is start + ftol((endStamp − startStamp)·speed) + offset, or start when that sum is negative and end when it exceeds the length; before its end stamp the looping formula runs with now raised to the start stamp. A paused instance moves both stamps forward by the pause.

The derivation is in the doc.

Callers 4

Callees 15

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