|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bulletphysics.linearmath.MotionState com.bulletphysics.linearmath.DefaultMotionState
public class DefaultMotionState
DefaultMotionState provides a common implementation to synchronize world transforms with offsets.
Field Summary | |
---|---|
Transform |
centerOfMassOffset
Center of mass offset transform, used to adjust graphics world transform. |
Transform |
graphicsWorldTrans
Current interpolated world transform, used to draw object. |
Transform |
startWorldTrans
Initial world transform. |
Constructor Summary | |
---|---|
DefaultMotionState()
Creates a new DefaultMotionState with all transforms set to identity. |
|
DefaultMotionState(Transform startTrans)
Creates a new DefaultMotionState with initial world transform and center of mass offset transform set to identity. |
|
DefaultMotionState(Transform startTrans,
Transform centerOfMassOffset)
Creates a new DefaultMotionState with initial world transform and center of mass offset transform. |
Method Summary | |
---|---|
Transform |
getWorldTransform(Transform out)
Returns world transform. |
void |
setWorldTransform(Transform centerOfMassWorldTrans)
Sets world transform. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Transform graphicsWorldTrans
public final Transform centerOfMassOffset
public final Transform startWorldTrans
Constructor Detail |
---|
public DefaultMotionState()
public DefaultMotionState(Transform startTrans)
public DefaultMotionState(Transform startTrans, Transform centerOfMassOffset)
Method Detail |
---|
public Transform getWorldTransform(Transform out)
MotionState
getWorldTransform
in class MotionState
public void setWorldTransform(Transform centerOfMassWorldTrans)
MotionState
setWorldTransform
in class MotionState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |