Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

SKEL Chunk

Marcus Kertesz edited this page Feb 27, 2022 · 2 revisions

A chunk which contains a bone hierarchy.

Chunk Header

Size (bytes) Name Expected Value Type Notes
4 Type 'DATA' String (ascii)
4 ID 'SKEL' String (ascii)
4 Version '5' UInt32
4 Size (bytes) - UInt32
4 Name Size '1' UInt32
- Name '' String (ascii) Null Terminated ('\x00')

Layout

Data

Size (bytes) Name Expected Value Type
4 Bone Count - Int32
- Bones - List[Bone Data]

Bone Data

Represents a single bone in the hierarchy

Parent Index points to the parent bone in the Bones array. If Parent Index is -1, then the bone has no parent.

Position and Rotation are relative to the parent.

Layout

Size (bytes) Name Expected Value Type
4 Name Size - Int32
- Name - String (ascii)
4 Parent Index - Int32
12 Position - Float3
16 Rotation - Quaternion (x,y,z,w)

Used In

WHM-Chunky

Clone this wiki locally