benilla-re systems structs docs

CM2Model::Update

function · models · primitive

Address
0x719370 · 1470 bytes, up to 0x71992d
Meaning
Advances an instance's time and queues its animation-done and event callbacks for the frame
Confidence
verified, proof one
Finding
models/animation#update-and-events
Test
models::abs_int_scale_difftest, models::bone_emit_frame_difftest

Finding: Update and events in models: animation

Update(dt) adds dt to the pending time and, with a done or event callback set, walks the key bones that play. A bone's window runs from max(start stamp, now − dt) to min(now, end stamp), or to now for a looping sequence; reaching the end stamp queues the done callback once. In sequence-local times, at most one length apart, it walks the event's keys from start + (local mod length), wrapping at the range end, and queues the event callback for each key with local start ≤ key < local end, or the reverse when playing backwards. An event belongs to the first bone up its parent chain with a sequence. Attached children with a resolved, visible attachment update too.

The derivation is in the doc.

Callers 2

Callees 7

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