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

public class Joint extends Object implements Savable
Representation of a Joint in a Skeleton. Meant to be used within a specific Skeleton object.
  • Field Details

    • NO_PARENT

      public static final short NO_PARENT
      Root node ID
      See Also:
    • _index

      protected short _index
    • _parentIndex

      protected short _parentIndex
      Index of our parent Joint, or NO_PARENT if we are the root.
  • Constructor Details

    • Joint

      public Joint(String name)
      Construct a new Joint object using the given name.
      Parameters:
      name - the name
    • Joint

      protected Joint()
  • Method Details

    • getInverseBindPose

      public ReadOnlyTransform getInverseBindPose()
      Returns:
      the inverse of the joint space to model space transformation.
    • setInverseBindPose

      public void setInverseBindPose(ReadOnlyTransform inverseBindPose)
    • getName

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

      public void setParentIndex(short parentIndex)
      Set the index of this joint's parent within the containing Skeleton's joint array.
      Parameters:
      parentIndex - the index, or NO_PARENT if this Joint is root (has no parent)
    • getParentIndex

      public short getParentIndex()
    • setIndex

      public void setIndex(short index)
    • getIndex

      public short getIndex()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getClassTag

      public Class<? extends Joint> 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 Joint initSavable()