Class Index | File Index

Classes


Class GLGE.SkeletalAction

Class to perform an action on a skeleton
Defined in: glge.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
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
Class Detail
GLGE.SkeletalAction(frames)
Parameters:
frames
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

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Dec 21 2009 20:52:55 GMT-0000 (GMT)