public class Skeleton
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Skeleton() |
| Modifier and Type | Method and Description |
|---|---|
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() |
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 ObjectMap<java.lang.String,SkeletonAnimation> animations
public void buildFromHierarchy()
protected void calculateOffsetMatrices()
protected void calculateMatrices(Array<SkeletonKeyframe> joints)
public void setAnimation(java.lang.String name,
float time)
public void setBindPose()