|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.g3d.model.skeleton.Skeleton
public class Skeleton
Field Summary | |
---|---|
ObjectMap<java.lang.String,SkeletonAnimation> |
animations
map of animations, indexed by name |
Array<SkeletonKeyframe> |
animPoseJoints
the joints in breadth first order for the last calculates animation pose |
Array<SkeletonKeyframe> |
bindPoseJoints
the bind pose joints in breadth first order |
Array<Matrix4> |
combinedMatrices
combined scene and offset matrices |
Array<SkeletonJoint> |
hierarchy
each joint is a root joint in the hierachy |
Array<java.lang.String> |
jointNames
the names of each joint in breadth first order |
java.util.Map<java.lang.String,java.lang.Integer> |
namesToIndices
names to indices |
Array<Matrix4> |
offsetMatrices
the offset matrices for each joint in the same order as the bindPoseJoints |
Array<Matrix4> |
sceneMatrices
the scene matrices for each joint in the same order as bindPoseJoints |
Constructor Summary | |
---|---|
Skeleton()
|
Method Summary | |
---|---|
void |
buildFromHierarchy()
Fills the baseJoints, offsetMatrices and sceneMatrices Array instances with joints and Matrix4 instances in an breadth first order. |
protected void |
calculateMatrices(Array<SkeletonKeyframe> joints)
|
protected void |
calculateOffsetMatrices()
|
void |
setAnimation(java.lang.String name,
float time)
|
void |
setBindPose()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Array<SkeletonJoint> hierarchy
public final Array<java.lang.String> jointNames
public final java.util.Map<java.lang.String,java.lang.Integer> namesToIndices
public final Array<SkeletonKeyframe> bindPoseJoints
public final Array<SkeletonKeyframe> animPoseJoints
public final Array<Matrix4> offsetMatrices
public final Array<Matrix4> sceneMatrices
public final Array<Matrix4> combinedMatrices
public final ObjectMap<java.lang.String,SkeletonAnimation> animations
Constructor Detail |
---|
public Skeleton()
Method Detail |
---|
public void buildFromHierarchy()
protected void calculateOffsetMatrices()
protected void calculateMatrices(Array<SkeletonKeyframe> joints)
public void setAnimation(java.lang.String name, float time)
public void setBindPose()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |