Class Joint
java.lang.Object
com.ardor3d.extension.animation.skeletal.Joint
- All Implemented Interfaces:
Savable
Representation of a Joint in a Skeleton. Meant to be used within a specific Skeleton object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected shortprotected shortIndex of our parent Joint, or NO_PARENT if we are the root.static final shortRoot node ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortgetIndex()getName()shortstatic Jointvoidread(InputCapsule capsule) voidsetIndex(short index) voidsetInverseBindPose(ReadOnlyTransform inverseBindPose) voidsetParentIndex(short parentIndex) Set the index of this joint's parent within the containing Skeleton's joint array.toString()voidwrite(OutputCapsule capsule)
-
Field Details
-
NO_PARENT
public static final short NO_PARENTRoot node ID- See Also:
-
_index
protected short _index -
_parentIndex
protected short _parentIndexIndex of our parent Joint, or NO_PARENT if we are the root.
-
-
Constructor Details
-
Joint
Construct a new Joint object using the given name.- Parameters:
name- the name
-
Joint
protected Joint()
-
-
Method Details
-
getInverseBindPose
- Returns:
- the inverse of the joint space to model space transformation.
-
setInverseBindPose
-
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
-
getClassTag
- Specified by:
getClassTagin interfaceSavable
-
write
- Specified by:
writein interfaceSavable- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Throws:
IOException
-
initSavable
-