benilla-re systems structs docs

M2Bone

struct · models · 108 bytes

Meaning
Holds a bone record of an MD20 file: key bone id, flags, parent, three tracks and pivot
Confidence
verified, proof one
Finding
models/records#bone-record

Finding: Bone record in models: records

A bone is 0x6c bytes.

offsetholds
+0x00key bone id, −1 for none
+0x04flags, or'd with the runtime flags
+0x08parent bone, 16-bit
+0x0c, +0x28, +0x44translation, rotation and scale tracks
+0x60pivot, three floats

The derivation is in the doc.

Fields 5

offsetsizetypenamemeaningconfidencefinding
0x00004int32_tm_keyBoneHolds the key bone id, -1 for noneverified, proof onemodels/records#bone-record
0x00044uint32_tm_flagsHolds the flagsverified, proof onemodels/records#bone-record
0x00082uint16_tm_parentHolds the parent boneverified, proof onemodels/records#bone-record
0x000c84uint8_t[84]m_tracksHolds the translation, rotation and scale tracksverified, proof onemodels/records#bone-record
0x006012float[3]m_pivotHolds the pivotverified, proof onemodels/records#bone-record