Skeleton

Use an array of bones to create a skeleton that can be used by a SkinnedMesh.

Constructor

new Skeleton(bones, boneInverses)

Parameters:
NameTypeDescription
bonesArray.<Bone>
boneInversesArray.<Matrix4>

Members

boneInverses :Array.<Matrix4>

An array of Matrix4s that represent the inverse of the worldMatrix of the individual bones.

Type:

boneMatrices :Float32Array

The array buffer holding the bone data.

Type:
  • Float32Array

boneTexture :Texture2D|undefined

The Texture2D holding the bone data when using a vertex texture. Use vertex texture to update boneMatrices, by that way, we can use more bones on phone.

Type:
Default Value
  • undefined

bones :Array.<Bone>

The array of bones.

Type:

Methods

clone() → {Skeleton}

Clone skeleton.

Returns:
Type: 
Skeleton

pose()

Returns the skeleton to the base pose.