|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.animation.Skeleton
public final class Skeleton
Skeleton
is a convenience class for managing a bone hierarchy.
Skeleton updates the world transforms to reflect the current local
animated matrixes.
Constructor Summary | |
---|---|
Skeleton()
Serialization only. |
|
Skeleton(Bone[] boneList)
Creates a skeleton from a bone list. |
|
Skeleton(Skeleton source)
Special-purpose copy constructor. |
Method Summary | |
---|---|
Matrix4f[] |
computeSkinningMatrices()
Compute the skining matrices for each bone of the skeleton that would be used to transform vertices of associated meshes |
Bone |
getBone(int index)
return a bone for the given index |
Bone |
getBone(java.lang.String name)
returns the bone with the given name |
int |
getBoneCount()
returns the number of bones of this skeleton |
int |
getBoneIndex(Bone bone)
returns the bone index of the given bone |
int |
getBoneIndex(java.lang.String name)
returns the bone index of the bone that has the given name |
Bone[] |
getRoots()
returns the array of all root bones of this skeleton |
void |
read(JmeImporter im)
|
void |
reset()
Reset the skeleton to bind pose. |
void |
resetAndUpdate()
Reset the skeleton to bind pose and updates the bones |
void |
setBindingPose()
Saves the current skeleton state as it's binding pose. |
java.lang.String |
toString()
|
void |
updateWorldVectors()
Updates world transforms for all bones in this skeleton. |
void |
write(JmeExporter ex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Skeleton(Bone[] boneList)
Note that using this constructor will cause the bones in the list to have their bind pose recomputed based on their local transforms.
boneList
- The list of bones to manage by this Skeletonpublic Skeleton(Skeleton source)
Shallow copies bind pose data from the source skeleton, does not copy any other data.
source
- The source Skeleton to copy frompublic Skeleton()
Method Detail |
---|
public void updateWorldVectors()
public void setBindingPose()
public final void reset()
public final void resetAndUpdate()
public Bone[] getRoots()
public Bone getBone(int index)
index
-
public Bone getBone(java.lang.String name)
name
-
public int getBoneIndex(Bone bone)
bone
-
public int getBoneIndex(java.lang.String name)
name
-
public Matrix4f[] computeSkinningMatrices()
public int getBoneCount()
public java.lang.String toString()
toString
in class java.lang.Object
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
java.io.IOException
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |