|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threed.jpct.skeleton.SimpleSkeleton
public class SimpleSkeleton
A simple implementation of a skeleton. The skeleton references, and controls the bones, and their animation keyframes.
| Constructor Summary | |
|---|---|
SimpleSkeleton()
|
|
| Method Summary | |
|---|---|
void |
advanceAnimation()
Advances the animation sequence. |
void |
build()
Initializes the skeleton. |
SimpleBone |
getBone(int id)
Returns a bone with the same id, or null if nothing is found. |
SimpleBone |
getBone(java.lang.String name)
Returns a bone with the same name, or null if nothing is found. |
SimpleBone[] |
getBones()
Return skeleton's bone array. |
void |
restartAnimation()
Restarts the animation sequence. |
void |
setAnimations(SkeletalAnimation[] animations)
Set the animation array. |
void |
setBones(SimpleBone[] bones)
Sets the bone array of this skeleton. |
void |
setCurrentAnimation(int animation)
Sets the current animation sequence directly, by its index. |
void |
setCurrentAnimation(java.lang.String name)
Sets current animation sequence. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSkeleton()
| Method Detail |
|---|
public void setCurrentAnimation(int animation)
animation - Index of animation sequence.public void setCurrentAnimation(java.lang.String name)
name - Name of animation to set.public void setBones(SimpleBone[] bones)
bones - Array of bones.public void setAnimations(SkeletalAnimation[] animations)
animations - Array of animation definitionspublic SimpleBone getBone(java.lang.String name)
name - Name of bone to search for
public SimpleBone getBone(int id)
id - Id of bone to search for
public void build()
public void restartAnimation()
public void advanceAnimation()
public SimpleBone[] getBones()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||