Skeleton

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

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

Properties

NameTypeDescription
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).

Methods

MethodDescription
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.