|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Controller
com.jme.animation.JointController
Started Date: Jun 9, 2004
This controller animates a Node's JointMesh children acording to the joints
stored inside movementInfo.
| Nested Class Summary | |
class |
JointController.PointInTime
At a point in time is defined by time . |
| Field Summary | |
float |
FPS
Currently unused. |
TransformMatrix[] |
localRefMatrix
Local refrence matrix that can determine a joint's position in space relative to its parent. |
java.util.ArrayList |
movementInfo
movementInfo[i] contains a float value time and an array of TransformMatrix. |
java.util.ArrayList |
movingMeshes
Array of all the meshes this controller should consider animating. |
int |
numJoints
It is JointController's responsibility to keep changePoints sorted by time at all times. |
int[] |
parentIndex
parentIndex contains a list of who's parent a joint is. |
float |
skipRate
Tells update that it should be called every skipRate
seconds |
| Fields inherited from class com.jme.scene.Controller |
RT_CLAMP, RT_CYCLE, RT_WRAP |
| Constructor Summary | |
JointController(int numJoints)
Constructs a new JointController that will hold the given number of joints. |
|
| Method Summary | |
void |
addJointMesh(JointMesh child)
Adds a jointmesh for this JointController to consider animating. |
boolean |
getModelUpdate()
Returns true if the model's bounding volume is being updated every frame. |
void |
processController()
Processes a JointController by filling holes and creating inverse matrixes. |
Controller |
putClone(Controller store,
CloneCreator properties)
This function should be overridden by any Spatial objects that want their Controller cloned by a CloneCreator. |
void |
setModelUpdate(boolean update)
If true, the model's bounding volume will be updated every frame. |
void |
setRotation(int jointNumber,
float time,
float x,
float y,
float z)
Tells JointController that at time time the joint
jointNumber will rotate acording to the euler angles x,y,z
relative to its parent's rotation |
void |
setRotation(int jointNumber,
float time,
Quaternion quaternion)
Tells JointController that at time time the joint
jointNumber will rotate acording to
Quaternion. |
void |
setTimes(int start,
int end)
Sets the frames the joint controller will animate from and to. |
void |
setTranslation(int jointNumber,
float time,
float x,
float y,
float z)
Tells JointController that at time time the joint
jointNumber will translate to x,y,z relative to its parent |
void |
setTranslation(int jointNumber,
float time,
Vector3f trans)
Tells JointController that at time time the joint
jointNumber will translate to x,y,z relative to its parent |
void |
update(float time)
Updates the movingMeshes by updating their joints +=time |
| Methods inherited from class com.jme.scene.Controller |
getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, setActive, setMaxTime, setMinTime, setRepeatType, setSpeed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int numJoints
time at all times.
public java.util.ArrayList movementInfo
time the joint i is at movement
jointChange[i]
public int[] parentIndex
public TransformMatrix[] localRefMatrix
public float FPS
public java.util.ArrayList movingMeshes
public float skipRate
skipRate
seconds
| Constructor Detail |
public JointController(int numJoints)
numJoints - The number of joints this jointController will have| Method Detail |
public void setTranslation(int jointNumber,
float time,
float x,
float y,
float z)
time the joint
jointNumber will translate to x,y,z relative to its parent
jointNumber - Index of joint to affecttime - Which time the joint will take these valuesx - Joint's x translationy - Joint's y translationz - Joint's z translation
public void setTranslation(int jointNumber,
float time,
Vector3f trans)
time the joint
jointNumber will translate to x,y,z relative to its parent
jointNumber - Index of joint to affecttime - Which time the joint will take these valuestrans - Joint's translation
public void setRotation(int jointNumber,
float time,
float x,
float y,
float z)
time the joint
jointNumber will rotate acording to the euler angles x,y,z
relative to its parent's rotation
jointNumber - Index of joint to affecttime - Which time the joint will take these valuesx - Joint's x rotationy - Joint's y rotationz - Joint's z rotation
public void setRotation(int jointNumber,
float time,
Quaternion quaternion)
time the joint
jointNumber will rotate acording to
Quaternion.
jointNumber - Index of joint to affecttime - Which time the joint will take these valuesquaternion - The joint's new rotationpublic void update(float time)
movingMeshes by updating their joints +=time
update in class Controllertime - Time from last update
public void setTimes(int start,
int end)
start - The starting frame number.end - The ending frame number.public void processController()
public void setModelUpdate(boolean update)
update - The new update model volume per frame value.public boolean getModelUpdate()
public void addJointMesh(JointMesh child)
child - Child JointMesh to consider
public Controller putClone(Controller store,
CloneCreator properties)
Controller
putClone in class Controllerstore - The Controller to store properties into. If null, null is
returned.properties - The CloneCreator controlling how things should be copied into
the store Controller.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||