Skip to content

Skeleton

new Skeleton(bones?: Bone[], boneInverses?: Matrix4[])

THREE equivalent: THREE.Skeleton

Holds a set of Bones and their inverse bind matrices for skeletal animation. Automatically computes inverses if not provided.

Name Type Description
bones Bone[] Array of bones in this skeleton (read-only).
boneInverses Matrix4[] Inverse bind matrices, one per bone (read-only).
boneMatrices Float32Array Flat buffer of 16 floats per bone containing current bone transforms (read-only).
Method Description
calculateInverses(): void Computes inverse world matrices for all bones from their current transforms.
pose(): void Restores all bones to their bind pose.
update(): void Writes boneMatrices from each bone’s current matrixWorld multiplied by its boneInverse.
getBoneByName(name: string): Bone|undefined Returns the first bone with the given name.
dispose(): void Releases the boneMatrices buffer.