Class Index | File Index

Classes


Class GLGE.Skeleton

Class specifing bones,locations and relationships
Defined in: glge.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
addBone(bone, parent)
Adds a bone to the skeleton
 
Gets the bone object from it's name
 
getBoneTransforms(bone, action, frame)
Gets the transform of a bone for a given action at a specified frame
 
getTransforms(action, frame)
Gets and array containing the transforms of each of the bones
Class Detail
GLGE.Skeleton()
Method Detail
addBone(bone, parent)
Adds a bone to the skeleton
Parameters:
{GLGE.Bone} bone
the bone to add NOTE why don't I just add the parent into the bone object????
parent

boneFromName(name)
Gets the bone object from it's name
Parameters:
{string} name
the name of the bone to get
Returns:
GLGE.Bone

getBoneTransforms(bone, action, frame)
Gets the transform of a bone for a given action at a specified frame
Parameters:
{string} bone
the bone to get the matrix for
{GLGE.SkeletalAction} action
the action to the the matrix for
{number} frame
The frame number to get the matrix for
Returns:
Matrix

getTransforms(action, frame)
Gets and array containing the transforms of each of the bones
Parameters:
{GLGE.SkeletalAction} action
the action to get the transforms for
{number} frame
the frame number
Returns:
Matrix[]

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