com.jme.animation
Class JointController.PointInTime

java.lang.Object
  extended bycom.jme.animation.JointController.PointInTime
Enclosing class:
JointController

public class JointController.PointInTime
extends java.lang.Object

At a point in time is defined by time . JointController will change joint i to the rotation jointRotation[i] and translation jointTranslation[i] at the point in time time


Field Summary
 Quaternion[] jointRotation
          Array of rotations for this PointInTime.
 Vector3f[] jointTranslation
          Array of translations for this PointInTime.
 float time
          The time represented by this PointInTime.
 java.util.BitSet usedRot
          The bitsets specify if the translation/rotation was specified externally, or if it was interpolated.
 java.util.BitSet usedTrans
          The bitsets specify if the translation/rotation was specified externally, or if it was interpolated.
 
Constructor Summary
JointController.PointInTime(int time)
          Constructs a new PointInTime at the given time.
 
Method Summary
 void setRotation(int jointIndex, Quaternion quaternion)
          Sets for the given joint to have the given rotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

public float time
The time represented by this PointInTime.


jointTranslation

public Vector3f[] jointTranslation
Array of translations for this PointInTime. Each value represents a translation.


jointRotation

public Quaternion[] jointRotation
Array of rotations for this PointInTime. Each value represents a joint.


usedTrans

public java.util.BitSet usedTrans
The bitsets specify if the translation/rotation was specified externally, or if it was interpolated. This is useful to cut down on stored file size.


usedRot

public java.util.BitSet usedRot
The bitsets specify if the translation/rotation was specified externally, or if it was interpolated. This is useful to cut down on stored file size.

Constructor Detail

JointController.PointInTime

public JointController.PointInTime(int time)
Constructs a new PointInTime at the given time.

Parameters:
time - The time for the new PointInTime.
Method Detail

setRotation

public void setRotation(int jointIndex,
                        Quaternion quaternion)
Sets for the given joint to have the given rotation.

Parameters:
jointIndex - The joint index.
quaternion - The rotation for this point in time.