Expand description
Types for working with Skel data in .nusktb files.
The data for each bone is collected into a BoneData struct with a single transformation matrix. The missing matrices are recalculated when converting to Skel based on the hierarchy of BoneData.
§File Differences
Unmodified files are not guaranteed to be binary identical after saving. Calculated matrices may differ from the originals due to slightly different algorithms and floating point errors. These errors are very small in practice but may cause gameplay differences such as online desyncs.
Modules§
Structs§
- Data associated with a SkelBoneEntry.
- The data associated with a Skel file. The supported version is 1.0.
Enums§
- Billboarding reorients a MeshObject parented to a bone based on the camera. This effect is commonly used for 2D sprites for particles and distant objects like trees.
- Errors while calculating BoneData transformation matrices.
Functions§
- Calculates the transform of
world_transform
relative toparent_world_transform
. Ifparent_world_transform
is None, a copy ofworld_transform
is returned. All matrices are assumed to be in column-major order.