Animations
From NFBSP
[edit]
C# Code
Every Animation and the AnimationValue block are buffered to 16 bytes in Version 14, and to 4 bytes in Version 11.
struct Animation { // Length: 12; NOT IN HEADER ushort[][] ValueOffset = new ushort[BoneCount][6]; }
struct AnimationValue { // Length: 2; NOT IN HEADER byte Valid; // Or a short value (16-bit signed integer). byte Total; }
[edit]
Details
- ValueOffset: The offset into animation values relative to the beginning of the row.
- Valid: How many values are following.
- Total: How many values need to be produced. If valid does not equal total, the last value repeats to the count of total.
- Value: The value which is scaled to create the bone position at this frame.
[edit]
