java.lang.Object
com.ardor3d.extension.animation.skeletal.Skeleton
All Implemented Interfaces:
Savable

public class Skeleton extends Object implements 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 Details

    • Skeleton

      public Skeleton(String name, Joint[] joints)
      Parameters:
      name - A name, for display or debugging purposes
      joints - An array of Joints associated with this Skeleton.
    • Skeleton

      protected Skeleton()
  • Method Details

    • getName

      public String getName()
      Returns:
      the human-readable name of this skeleton.
    • getJoints

      public Joint[] getJoints()
      Returns:
      the array of Joints that make up this skeleton.
    • findJointByName

      public int findJointByName(String jointName)
      Parameters:
      jointName - name of the joint to locate. Case sensitive.
      Returns:
      the index of the joint, if found, or -1 if not.
    • getClassTag

      public Class<? extends Skeleton> getClassTag()
      Specified by:
      getClassTag in interface Savable
    • write

      public void write(OutputCapsule capsule) throws IOException
      Specified by:
      write in interface Savable
      Throws:
      IOException
    • read

      public void read(InputCapsule capsule) throws IOException
      Specified by:
      read in interface Savable
      Throws:
      IOException
    • initSavable

      public static Skeleton initSavable()