Constructor
new Skeleton(bones, boneInverses)
Members
boneInverses :Array.<Matrix4>
An array of Matrix4s that represent the inverse of the worldMatrix of the individual bones.
Type:
- Array.<Matrix4>
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:
- Texture2D |
undefined
- Default Value
- undefined
bones :Array.<Bone>
The array of bones.
Type:
- Array.<Bone>
Methods
clone() → {Skeleton}
Clone skeleton.
Returns:
- Type:
- Skeleton
pose()
Returns the skeleton to the base pose.