Class GLGE.SkeletalAction
Class to perform an action on a skeleton
Defined in: glge.js.
Constructor Attributes | Constructor Name and Description |
---|---|
GLGE.SkeletalAction(frames)
|
Method Attributes | Method Name and Description |
---|---|
addAnimationVector(boneName, AnimationVector)
Adds an animation to one of the bone
|
|
boneValue(boneName, channel, frame)
Get the values of the animation vector for a given bone on a given channel at a given frame
|
|
Cache all the transforms for this action
|
|
getBoneTransform(boneName, frame)
Get the transformation matrix for the bone at a given frame
|
|
removeCurve(boneName)
Removed an animation for a bone
|
Method Detail
addAnimationVector(boneName, AnimationVector)
Adds an animation to one of the bone
- Parameters:
- {string} boneName
- The name of the bone
- {GLGE.AnimationVector} AnimationVector
- The animation to associate with the bone
{object}
boneValue(boneName, channel, frame)
Get the values of the animation vector for a given bone on a given channel at a given frame
- Parameters:
- {string} boneName
- The name of the bone
- {string} channel
- The animation vector channel
- {number} frame
- The frame to get the value for
- Returns:
- {object}
cacheTransforms()
Cache all the transforms for this action
{Matrix}
getBoneTransform(boneName, frame)
Get the transformation matrix for the bone at a given frame
- Parameters:
- {string} boneName
- The name of the bone
- {number} frame
- The frame to get the value for
- Returns:
- {Matrix}
removeCurve(boneName)
Removed an animation for a bone
- Parameters:
- {string} boneName
- The name of the bone