com.jme3.bullet.objects.infos
Class RigidBodyMotionState

java.lang.Object
  extended by 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


Constructor Summary
RigidBodyMotionState()
           
 
Method Summary
 boolean applyTransform(Spatial spatial)
          applies the current transform to the given jme Node if the location has been updated on the physics side
protected  void finalize()
           
 long getObjectId()
           
 Vector3f getWorldLocation()
           
 Matrix3f getWorldRotation()
           
 Quaternion getWorldRotationQuat()
           
 boolean isApplyPhysicsLocal()
           
 void setApplyPhysicsLocal(boolean applyPhysicsLocal)
           
 void setVehicle(PhysicsVehicle vehicle)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RigidBodyMotionState

public RigidBodyMotionState()
Method Detail

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