com.bulletphysics.linearmath
Class DefaultMotionState
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graphicsWorldTrans
public final Transform graphicsWorldTrans
centerOfMassOffset
public final Transform centerOfMassOffset
startWorldTrans
public final Transform startWorldTrans
DefaultMotionState
public DefaultMotionState()
DefaultMotionState
public DefaultMotionState(Transform startTrans)
DefaultMotionState
public DefaultMotionState(Transform startTrans,
Transform centerOfMassOffset)
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