benilla-re systems structs docs

M2BoneStateConstruct

function · models · primitive

Address
0x71b0a0 · 348 bytes, up to 0x71b1fb
Meaning
Constructs a bone state: cleared track states, no sequence in either slot, blend weight scale 1.0
Confidence
verified, proof one
Finding
animation/clock#bone-state

Finding: Bone state in animation: bone clocks

A bone state is 0x118 bytes: three track states, then the primary slot, the blend slot laid out the same, the fade and the active list link. A time is a signed 32-bit millisecond count, a speed a float. The constructor sets the primary and blend records, slots and bone indices (+0xa0, +0xcc) to −1, the cursors, speeds and offsets to 0, the repeats to 1, both completion latches to 1, the fade scale to 1.0, the requested id to −1 and the list next index to −1. It never writes the inverse speeds +0xb4 and +0xe0.

offsetholds
+0x00, +0x30, +0x68track states: translation (0x30 bytes), rotation (0x38), scale (0x30)
+0x98, +0x9c, +0xa0primary time, range slot, bone stamp
+0xa4primary record index, −1 for none
+0xa8, +0xacprimary cursors: start stamp, end stamp
+0xb0, +0xb4speed and its inverse, floats
+0xb8, +0xbc, +0xc0offset, repeats, completion latch
+0xc4 to +0xecthe blend slot, laid out as +0x98 to +0xc0
+0xf0, +0xf4override matrix pointer, flags
+0xf8, +0xfcrequested animation id and variation
+0x100, +0x104, +0x108fade end stamp, fade rate, fade scale
+0x10c, +0x110, +0x114blend weight, list link cell, next bone index

The derivation is in the doc.

Callers 1

Callees 4

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