com.bulletphysics.linearmath
Class DefaultMotionState

java.lang.Object
  extended by com.bulletphysics.linearmath.DefaultMotionState
All Implemented Interfaces:
MotionState

public class DefaultMotionState
extends java.lang.Object
implements MotionState

DefaultMotionState provides a common implementation to synchronize world transforms with offsets.


Field Summary
 Transform centerOfMassOffset
           
 Transform graphicsWorldTrans
           
 Transform startWorldTrans
           
 
Constructor Summary
DefaultMotionState()
           
DefaultMotionState(Transform startTrans)
           
DefaultMotionState(Transform startTrans, Transform centerOfMassOffset)
           
 
Method Summary
 void getWorldTransform(Transform centerOfMassWorldTrans)
           
 void setWorldTransform(Transform centerOfMassWorldTrans)
          Note: Bullet only calls the update of worldtransform for active objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphicsWorldTrans

public final Transform graphicsWorldTrans

centerOfMassOffset

public final Transform centerOfMassOffset

startWorldTrans

public final Transform startWorldTrans
Constructor Detail

DefaultMotionState

public DefaultMotionState()

DefaultMotionState

public DefaultMotionState(Transform startTrans)

DefaultMotionState

public DefaultMotionState(Transform startTrans,
                          Transform centerOfMassOffset)
Method Detail

getWorldTransform

public void getWorldTransform(Transform centerOfMassWorldTrans)
Specified by:
getWorldTransform in interface MotionState

setWorldTransform

public void setWorldTransform(Transform centerOfMassWorldTrans)
Description copied from interface: MotionState
Note: Bullet only calls the update of worldtransform for active objects.

Specified by:
setWorldTransform in interface MotionState