benilla-re systems structs docs

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.

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.

Fields 35

offsetsizetypenamemeaningconfidencefinding
0x000048uint8_t[48]m_translationHolds the translation track state: key triple and sampled vectorverified, proof oneanimation/clock#bone-state
0x003056uint8_t[56]m_rotationHolds the rotation track state: key triple and sampled quaternionverified, proof oneanimation/clock#bone-state
0x006848uint8_t[48]m_scaleHolds the scale track state: key triple and sampled vectorverified, proof oneanimation/clock#bone-state
0x00984int32_tm_timeHolds the primary sequence time in millisecondsverified, proof oneanimation/clock#bone-state
0x009c4int32_tm_slotHolds the primary sequence record index the time was taken inverified, proof oneanimation/clock#bone-state
0x00a04int32_tm_boneIndexHolds the bone index stored with the primary timeverified, proof oneanimation/clock#bone-state
0x00a44int32_tm_recordHolds the primary sequence record index, -1 for noneverified, proof oneanimation/clock#bone-state
0x00a84int32_tm_startHolds the primary start stamp of the play windowverified, proof oneanimation/clock#bone-state
0x00ac4int32_tm_endHolds the primary end stamp of the play windowverified, proof oneanimation/clock#bone-state
0x00b04floatm_speedHolds the primary playback speedverified, proof oneanimation/clock#bone-state
0x00b44floatm_speedInverseHolds the reciprocal of the primary speedverified, proof oneanimation/clock#bone-state
0x00b84int32_tm_offsetHolds the primary time offset in millisecondsverified, proof oneanimation/clock#bone-state
0x00bc4int32_tm_repeatsHolds the primary repeat countverified, proof oneanimation/clock#bone-state
0x00c04int32_tm_latchHolds the primary completion latchverified, proof oneanimation/clock#bone-state
0x00c44int32_tm_blendTimeHolds the blend sequence time in millisecondsverified, proof oneanimation/clock#bone-state
0x00c84int32_tm_blendSlotHolds the blend sequence record index the time was taken inverified, proof oneanimation/clock#bone-state
0x00cc4int32_tm_blendBoneIndexHolds the bone index stored with the blend timeverified, proof oneanimation/clock#bone-state
0x00d04int32_tm_blendRecordHolds the blend sequence record index, -1 for noneverified, proof oneanimation/clock#bone-state
0x00d44int32_tm_blendStartHolds the blend start stamp of the play windowverified, proof oneanimation/clock#bone-state
0x00d84int32_tm_blendEndHolds the blend end stamp of the play windowverified, proof oneanimation/clock#bone-state
0x00dc4floatm_blendSpeedHolds the blend playback speedverified, proof oneanimation/clock#bone-state
0x00e04floatm_blendSpeedInverseHolds the reciprocal of the blend speedverified, proof oneanimation/clock#bone-state
0x00e44int32_tm_blendOffsetHolds the blend time offset in millisecondsverified, proof oneanimation/clock#bone-state
0x00e84int32_tm_blendRepeatsHolds the blend repeat countverified, proof oneanimation/clock#bone-state
0x00ec4int32_tm_blendLatchHolds the blend completion latchverified, proof oneanimation/clock#bone-state
0x00f04void *m_overrideMatrixHolds the override matrix of the bone, 0 for noneverified, proof oneanimation/clock#bone-state
0x00f44uint32_tm_flagsHolds a copy of the bone record flagsverified, proof oneanimation/clock#bone-state
0x00f84int32_tm_requestedIdHolds the animation id the last play requested, -1 for noneverified, proof oneanimation/clock#bone-state
0x00fc4int32_tm_requestedVariationHolds the variation the last play requestedverified, proof oneanimation/clock#bone-state
0x01004int32_tm_fadeEndHolds the stamp at which the fade endsverified, proof oneanimation/clock#bone-state
0x01044floatm_fadeRateHolds the reciprocal of the fade lengthverified, proof oneanimation/clock#bone-state
0x01084floatm_fadeScaleHolds the weight a fade starts fromverified, proof oneanimation/clock#bone-state
0x010c4floatm_blendWeightHolds the weight of the blend sequence this passverified, proof oneanimation/clock#bone-state
0x01104void *m_listCellHolds the address of the cell that points to this state in the active listverified, proof oneanimation/clock#bone-state
0x01144int32_tm_nextIndexHolds the index of the next bone in the active list, -1 for the endverified, proof oneanimation/clock#bone-state