Creates a new Skeleton.
Optional
bones: Bone<Object3DEventMap>[]The array of THREE.Bone | bones. Default []
.
Optional
boneInverses: Matrix4[]An array of THREE.Matrix4 | Matrix4s. Default []
.
UUID of this object instance.
The array of THREE.Bone | Bones.
An array of Matrix4s that represent the inverse of the THREE.Matrix4 | matrixWorld of the individual bones.
The array buffer holding the bone data when using a vertex texture.
The THREE.DataTexture | DataTexture holding the bone data when using a vertex texture.
Generates the boneInverses array if not provided in the constructor.
Computes an instance of THREE.DataTexture | DataTexture in order to pass the bone data more efficiently to the shader
The texture is assigned to boneTexture.
Updates the boneMatrices and boneTexture after changing the bones
This is called automatically by the THREE.WebGLRenderer | WebGLRenderer if the Skeleton is used with a THREE.SkinnedMesh | SkinnedMesh.
Searches through the skeleton's bone array and returns the first with a matching name.
String to match to the Bone's THREE.Bone.name | .name property.
Use an array of bones to create a Skeleton that can be used by a THREE.SkinnedMesh | SkinnedMesh.
Example
See