com.bulletphysics.linearmath
Class MotionState
java.lang.Object
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).
MotionState
public MotionState()
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.