Skeleton Class

Module: Animation

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

Item Index

Methods

Methods

fromJSON

(
  • data
  • object
  • resources
)
static

Parse skeleton from JSON data, for a specific object.

Parameters:

  • data Object

    JSON encoded data.

  • object THREE.Object3D

    Target object that has this skeleton.

  • resources ResourceContainer

    Resource container to read resouce data.

Properties

boneInverses

Array

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

Use the supplied bone inverses or calculate the inverses.

boneMatrices

ArrayBuffer

The array buffer holding the bone data when using a vertex texture.

bones

Array

The array of bones. Note this is a copy of the original array, not a reference, so you can modify the original array without effecting this one.

boneTexture

DataTexture

The DataTexture holding the bone data when using a vertex texture.