M2BoneStateConstruct
function · models · primitive
- Address
0x71b0a0· 348 bytes, up to0x71b1fb- 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.
| offset | holds |
|---|---|
+0x00, +0x30, +0x68 | track states: translation (0x30 bytes), rotation (0x38), scale (0x30) |
+0x98, +0x9c, +0xa0 | primary time, range slot, bone stamp |
+0xa4 | primary record index, −1 for none |
+0xa8, +0xac | primary cursors: start stamp, end stamp |
+0xb0, +0xb4 | speed and its inverse, floats |
+0xb8, +0xbc, +0xc0 | offset, repeats, completion latch |
+0xc4 to +0xec | the blend slot, laid out as +0x98 to +0xc0 |
+0xf0, +0xf4 | override matrix pointer, flags |
+0xf8, +0xfc | requested animation id and variation |
+0x100, +0x104, +0x108 | fade end stamp, fade rate, fade scale |
+0x10c, +0x110, +0x114 | blend weight, list link cell, next bone index |
The derivation is in the doc.
Callers 1
- CM2Model::InitializeLoaded models
Callees 4
- SplatVector3 loadingscreen
- M2TrackStateClear models
- M2Vec3TrackStateClear models
- M2QuatClear models
Calls and jumps by a bare address, from tables/calls.tsv.