M2BoneState
struct · models · 280 bytes
- Meaning
- Holds a bone state: three track states, the primary and blend slots, the fade and the active list link
- 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.
Fields 35
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 48 | uint8_t[48] | m_translation | Holds the translation track state: key triple and sampled vector | verified, proof one | animation/clock#bone-state |
0x0030 | 56 | uint8_t[56] | m_rotation | Holds the rotation track state: key triple and sampled quaternion | verified, proof one | animation/clock#bone-state |
0x0068 | 48 | uint8_t[48] | m_scale | Holds the scale track state: key triple and sampled vector | verified, proof one | animation/clock#bone-state |
0x0098 | 4 | int32_t | m_time | Holds the primary sequence time in milliseconds | verified, proof one | animation/clock#bone-state |
0x009c | 4 | int32_t | m_slot | Holds the primary sequence record index the time was taken in | verified, proof one | animation/clock#bone-state |
0x00a0 | 4 | int32_t | m_boneIndex | Holds the bone index stored with the primary time | verified, proof one | animation/clock#bone-state |
0x00a4 | 4 | int32_t | m_record | Holds the primary sequence record index, -1 for none | verified, proof one | animation/clock#bone-state |
0x00a8 | 4 | int32_t | m_start | Holds the primary start stamp of the play window | verified, proof one | animation/clock#bone-state |
0x00ac | 4 | int32_t | m_end | Holds the primary end stamp of the play window | verified, proof one | animation/clock#bone-state |
0x00b0 | 4 | float | m_speed | Holds the primary playback speed | verified, proof one | animation/clock#bone-state |
0x00b4 | 4 | float | m_speedInverse | Holds the reciprocal of the primary speed | verified, proof one | animation/clock#bone-state |
0x00b8 | 4 | int32_t | m_offset | Holds the primary time offset in milliseconds | verified, proof one | animation/clock#bone-state |
0x00bc | 4 | int32_t | m_repeats | Holds the primary repeat count | verified, proof one | animation/clock#bone-state |
0x00c0 | 4 | int32_t | m_latch | Holds the primary completion latch | verified, proof one | animation/clock#bone-state |
0x00c4 | 4 | int32_t | m_blendTime | Holds the blend sequence time in milliseconds | verified, proof one | animation/clock#bone-state |
0x00c8 | 4 | int32_t | m_blendSlot | Holds the blend sequence record index the time was taken in | verified, proof one | animation/clock#bone-state |
0x00cc | 4 | int32_t | m_blendBoneIndex | Holds the bone index stored with the blend time | verified, proof one | animation/clock#bone-state |
0x00d0 | 4 | int32_t | m_blendRecord | Holds the blend sequence record index, -1 for none | verified, proof one | animation/clock#bone-state |
0x00d4 | 4 | int32_t | m_blendStart | Holds the blend start stamp of the play window | verified, proof one | animation/clock#bone-state |
0x00d8 | 4 | int32_t | m_blendEnd | Holds the blend end stamp of the play window | verified, proof one | animation/clock#bone-state |
0x00dc | 4 | float | m_blendSpeed | Holds the blend playback speed | verified, proof one | animation/clock#bone-state |
0x00e0 | 4 | float | m_blendSpeedInverse | Holds the reciprocal of the blend speed | verified, proof one | animation/clock#bone-state |
0x00e4 | 4 | int32_t | m_blendOffset | Holds the blend time offset in milliseconds | verified, proof one | animation/clock#bone-state |
0x00e8 | 4 | int32_t | m_blendRepeats | Holds the blend repeat count | verified, proof one | animation/clock#bone-state |
0x00ec | 4 | int32_t | m_blendLatch | Holds the blend completion latch | verified, proof one | animation/clock#bone-state |
0x00f0 | 4 | void * | m_overrideMatrix | Holds the override matrix of the bone, 0 for none | verified, proof one | animation/clock#bone-state |
0x00f4 | 4 | uint32_t | m_flags | Holds a copy of the bone record flags | verified, proof one | animation/clock#bone-state |
0x00f8 | 4 | int32_t | m_requestedId | Holds the animation id the last play requested, -1 for none | verified, proof one | animation/clock#bone-state |
0x00fc | 4 | int32_t | m_requestedVariation | Holds the variation the last play requested | verified, proof one | animation/clock#bone-state |
0x0100 | 4 | int32_t | m_fadeEnd | Holds the stamp at which the fade ends | verified, proof one | animation/clock#bone-state |
0x0104 | 4 | float | m_fadeRate | Holds the reciprocal of the fade length | verified, proof one | animation/clock#bone-state |
0x0108 | 4 | float | m_fadeScale | Holds the weight a fade starts from | verified, proof one | animation/clock#bone-state |
0x010c | 4 | float | m_blendWeight | Holds the weight of the blend sequence this pass | verified, proof one | animation/clock#bone-state |
0x0110 | 4 | void * | m_listCell | Holds the address of the cell that points to this state in the active list | verified, proof one | animation/clock#bone-state |
0x0114 | 4 | int32_t | m_nextIndex | Holds the index of the next bone in the active list, -1 for the end | verified, proof one | animation/clock#bone-state |