org.jagatoo.loaders.models.ms3d
Class MS3DJoint
java.lang.Object
org.jagatoo.loaders.models.ms3d.MS3DJoint
public class MS3DJoint
- extends java.lang.Object
|
Method Summary |
boolean |
hasKeyFrames()
Says if the joint has at least one key frame to animate |
int |
selectCurrentRotFrame(float currentTime)
Selects the current rotation key frame, based on the current time |
int |
selectCurrentTransFrame(float currentTime)
Selects the current transformation key frame, based on the current time |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
public java.lang.String name
parent
public java.lang.String parent
rotation
public org.openmali.vecmath2.Point3f rotation
position
public org.openmali.vecmath2.Point3f position
numRotFrames
public int numRotFrames
numTransFrames
public int numTransFrames
rotKeyFrames
public MS3DKeyFrame[] rotKeyFrames
transKeyFrames
public MS3DKeyFrame[] transKeyFrames
parentIndex
public int parentIndex
matLocal
public org.openmali.vecmath2.Matrix4f matLocal
matAbs
public org.openmali.vecmath2.Matrix4f matAbs
matFinal
public org.openmali.vecmath2.Matrix4f matFinal
curRotFrame
public int curRotFrame
curTransFrame
public int curTransFrame
MS3DJoint
public MS3DJoint(LittleEndianDataInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
selectCurrentTransFrame
public int selectCurrentTransFrame(float currentTime)
- Selects the current transformation key frame, based on the current time
- Parameters:
currentTime - beetween 0 and the end of the animation, in seconds
- Returns:
- frame index selected
selectCurrentRotFrame
public int selectCurrentRotFrame(float currentTime)
- Selects the current rotation key frame, based on the current time
- Parameters:
currentTime - beetween 0 and the end of the animation, in seconds
- Returns:
- frame index selected
hasKeyFrames
public boolean hasKeyFrames()
- Says if the joint has at least one key frame to animate
- Returns:
- true/false