Skeleton

clay. Skeleton

# new Skeleton()

Source:

Members

# joints :Array.<clay.Joint>

Source:

joints

Type:

# name :string

Source:
Type:
  • string

# relativeRootNode :clay.Node

Source:

Relative root node that not affect transform of joint.

Type:

Methods

# addClip(clip, mapRuleopt)

Source:

Add a skinning clip and create a map between clip and skeleton

Parameters:
Name Type Attributes Description
clip clay.animation.SkinningClip
mapRule Object <optional>

Map between joint name in skeleton and joint name in clip

# getClip(index)

Source:

Get clip by index

Parameters:
Name Type Description
index number

# getClipNumber() → {number}

Source:
Returns:
Type
number

# removeClip(clip)

Source:
Parameters:
Name Type Description
clip clay.animation.SkinningClip

# removeClipsAll()

Source:

Remove all clips

# update()

Source:

Update skinning matrices

# updateJointMatrices()

Source:

Calculate joint matrices from node transform