Class Skeleton
java.lang.Object
com.ardor3d.extension.animation.skeletal.Skeleton
- All Implemented Interfaces:
Savable
Describes a collection of Joints. This class represents the hierarchy of a Skeleton and its original aspect (via the
Joint class). This does not support posing the joints in any way... Use with a SkeletonPose to describe a skeleton in
a specific pose.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
findJointByName
(String jointName) Joint[]
getName()
static Skeleton
void
read
(InputCapsule capsule) void
write
(OutputCapsule capsule)
-
Constructor Details
-
Skeleton
- Parameters:
name
- A name, for display or debugging purposesjoints
- An array of Joints associated with this Skeleton.
-
Skeleton
protected Skeleton()
-
-
Method Details
-
getName
- Returns:
- the human-readable name of this skeleton.
-
getJoints
- Returns:
- the array of Joints that make up this skeleton.
-
findJointByName
- Parameters:
jointName
- name of the joint to locate. Case sensitive.- Returns:
- the index of the joint, if found, or -1 if not.
-
getClassTag
- Specified by:
getClassTag
in interfaceSavable
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-
initSavable
-