com.jme3.bullet.objects.infos
Class RigidBodyMotionState
java.lang.Object
com.jme3.bullet.objects.infos.RigidBodyMotionState
public class RigidBodyMotionState
- extends java.lang.Object
stores transform info of a PhysicsNode in a threadsafe manner to
allow multithreaded access from the jme scenegraph and the bullet physicsspace
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RigidBodyMotionState
public RigidBodyMotionState()
applyTransform
public boolean applyTransform(Spatial spatial)
- applies the current transform to the given jme Node if the location has been updated on the physics side
- Parameters:
spatial
-
getWorldLocation
public Vector3f getWorldLocation()
- Returns:
- the worldLocation
getWorldRotation
public Matrix3f getWorldRotation()
- Returns:
- the worldRotation
getWorldRotationQuat
public Quaternion getWorldRotationQuat()
- Returns:
- the worldRotationQuat
setVehicle
public void setVehicle(PhysicsVehicle vehicle)
- Parameters:
vehicle
- the vehicle to set
isApplyPhysicsLocal
public boolean isApplyPhysicsLocal()
setApplyPhysicsLocal
public void setApplyPhysicsLocal(boolean applyPhysicsLocal)
getObjectId
public long getObjectId()
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable