com.jmex.model.ogrexml.anim
Class BoneTrack

java.lang.Object
  extended by com.jmex.model.ogrexml.anim.BoneTrack
All Implemented Interfaces:
java.io.Serializable

public final class BoneTrack
extends java.lang.Object
implements java.io.Serializable

Contains a list of transforms and times for each keyframe.

See Also:
Serialized Form

Constructor Summary
BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations)
           
 
Method Summary
 void setTime(float time, Skeleton skeleton)
          Modify the bone which this track modifies in the skeleton to contain the correct animation transforms for a given time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoneTrack

public BoneTrack(int targetBoneIndex,
                 float[] times,
                 Vector3f[] translations,
                 Quaternion[] rotations)
Method Detail

setTime

public void setTime(float time,
                    Skeleton skeleton)
Modify the bone which this track modifies in the skeleton to contain the correct animation transforms for a given time. The transforms can be interpolated in some method from the keyframes.