public class RigidBodyMotionState
extends com.bulletphysics.linearmath.MotionState
| Constructor and Description |
|---|
RigidBodyMotionState() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyTransform(com.jme3.scene.Spatial spatial)
applies the current transform to the given jme Node if the location has been updated on the physics side
|
com.jme3.math.Vector3f |
getWorldLocation() |
com.jme3.math.Matrix3f |
getWorldRotation() |
com.jme3.math.Quaternion |
getWorldRotationQuat() |
com.bulletphysics.linearmath.Transform |
getWorldTransform(com.bulletphysics.linearmath.Transform t)
called from bullet when creating the rigidbody
|
boolean |
isApplyPhysicsLocal() |
void |
setApplyPhysicsLocal(boolean applyPhysicsLocal) |
void |
setVehicle(PhysicsVehicle vehicle) |
void |
setWorldTransform(com.bulletphysics.linearmath.Transform worldTrans)
called from bullet when the transform of the rigidbody changes
|
public com.bulletphysics.linearmath.Transform getWorldTransform(com.bulletphysics.linearmath.Transform t)
getWorldTransform in class com.bulletphysics.linearmath.MotionStatet - public void setWorldTransform(com.bulletphysics.linearmath.Transform worldTrans)
setWorldTransform in class com.bulletphysics.linearmath.MotionStateworldTrans - public boolean applyTransform(com.jme3.scene.Spatial spatial)
spatial - public com.jme3.math.Vector3f getWorldLocation()
public com.jme3.math.Matrix3f getWorldRotation()
public com.jme3.math.Quaternion getWorldRotationQuat()
public void setVehicle(PhysicsVehicle vehicle)
vehicle - the vehicle to setpublic boolean isApplyPhysicsLocal()
public void setApplyPhysicsLocal(boolean applyPhysicsLocal)