Class GLGE.Skeleton
Class specifing bones,locations and relationships
Defined in: glge.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
addBone(bone, parent)
Adds a bone to the skeleton
|
|
boneFromName(name)
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
|
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[]