public class DefaultMotionState extends MotionState
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Transform |
getWorldTransform(Transform out)
Returns world transform.
|
void |
setWorldTransform(Transform centerOfMassWorldTrans)
Sets world transform.
|
public final Transform graphicsWorldTrans
public final Transform centerOfMassOffset
public final Transform startWorldTrans
public DefaultMotionState()
public DefaultMotionState(Transform startTrans)
public Transform getWorldTransform(Transform out)
MotionStategetWorldTransform in class MotionStatepublic void setWorldTransform(Transform centerOfMassWorldTrans)
MotionStatesetWorldTransform in class MotionState