public class Skeleton extends Object implements Serializable, Iterable<Joint>
A collection of Joint's which constitute a hierarchy. A Skeleton can be shared among
 SkeletonPoses.
This class is originally adapted from Ardor3D.
| Modifier and Type | Field and Description | 
|---|---|
static int | 
MAX_JOINTS_PER_VERTEX
Maximum number of joints per vertex. 
 | 
| Constructor and Description | 
|---|
Skeleton(Joint[] joints)
Creates a new Skeleton out of given joints. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Joint | 
findJointByName(String jointName)
Finds the joint by name. 
 | 
Joint | 
getJoint(int index)
Returns the  
Joint by index. | 
int | 
getNumberOfJoints()
Returns number of joints 
 | 
Iterator<Joint> | 
iterator()
Returns an iterator of joints 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final int MAX_JOINTS_PER_VERTEX
public Skeleton(Joint[] joints)
Creates a new Skeleton out of given joints. Joint's indices must match their position in array and array should be ordered such that, parent comes first.