com.bulletphysics.linearmath
Class MotionState

java.lang.Object
  extended by com.bulletphysics.linearmath.MotionState
Direct Known Subclasses:
DefaultMotionState

public abstract class MotionState
extends Object

MotionState allows the dynamics world to synchronize the updated world transforms with graphics. For optimizations, potentially only moving objects get synchronized (using setWorldTransform method).


Constructor Summary
MotionState()
           
 
Method Summary
abstract  Transform getWorldTransform(Transform out)
          Returns world transform.
abstract  void setWorldTransform(Transform worldTrans)
          Sets world transform.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MotionState

public MotionState()
Method Detail

getWorldTransform

public abstract Transform getWorldTransform(Transform out)
Returns world transform.


setWorldTransform

public abstract void setWorldTransform(Transform worldTrans)
Sets world transform. This method is called by JBullet whenever an active object represented by this MotionState is moved or rotated.