5,389
edits
m (→Corpse chunks) |
m (→Corpse chunks) |
||
Line 65: | Line 65: | ||
*A space for notes (160 bytes) : often the name of the file the corpse was taken from when packing the array. | *A space for notes (160 bytes) : often the name of the file the corpse was taken from when packing the array. | ||
*A link to the [[OBD:ONCC|ONCC]] (model that should be used for the corpse) : that's 4 bytes as usual. | *A link to the [[OBD:ONCC|ONCC]] (model that should be used for the corpse) : that's 4 bytes as usual. | ||
*Then, 19 bones, each of them defined by absolute orientation and position (unlike in a TRAM, where orientations are relative)<br>Every bone is (3*3 + 3)*4 = 48 bytes, so that's 19*48 = 912 bytes. | *Then, 19 bones, each of them defined by absolute orientation and position (unlike in a [[OBD:TRAM/raw0x34|TRAM]], where orientations are relative)<br>Every bone is (3*3 + 3)*4 = 48 bytes, so that's 19*48 = 912 bytes. | ||
*Finally, an axis-aligned bounding box (2*3*4 = 24 bytes) | *Finally, an axis-aligned bounding box (2*3*4 = 24 bytes) | ||
The total size of a corpse is thus 1100 bytes. | The total size of a corpse is thus 1100 bytes. |