com.jme3.bullet.objects.infos
クラス RigidBodyMotionState

java.lang.Object
  上位を拡張 com.bulletphysics.linearmath.MotionState
      上位を拡張 com.jme3.bullet.objects.infos.RigidBodyMotionState

public class RigidBodyMotionState
extends com.bulletphysics.linearmath.MotionState

stores transform info of a PhysicsNode in a threadsafe manner to allow multithreaded access from the jme scenegraph and the bullet physicsspace


コンストラクタの概要
RigidBodyMotionState()
           
 
メソッドの概要
 boolean applyTransform(Spatial spatial)
          applies the current transform to the given jme Node if the location has been updated on the physics side
 Vector3f getWorldLocation()
           
 Matrix3f getWorldRotation()
           
 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
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RigidBodyMotionState

public RigidBodyMotionState()
メソッドの詳細

getWorldTransform

public com.bulletphysics.linearmath.Transform getWorldTransform(com.bulletphysics.linearmath.Transform t)
called from bullet when creating the rigidbody

定義:
クラス com.bulletphysics.linearmath.MotionState 内の getWorldTransform
パラメータ:
t -
戻り値:

setWorldTransform

public void setWorldTransform(com.bulletphysics.linearmath.Transform worldTrans)
called from bullet when the transform of the rigidbody changes

定義:
クラス com.bulletphysics.linearmath.MotionState 内の setWorldTransform
パラメータ:
worldTrans -

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

パラメータ:
spatial -

getWorldLocation

public Vector3f getWorldLocation()
戻り値:
the worldLocation

getWorldRotation

public Matrix3f getWorldRotation()
戻り値:
the worldRotation

getWorldRotationQuat

public Quaternion getWorldRotationQuat()
戻り値:
the worldRotationQuat

setVehicle

public void setVehicle(PhysicsVehicle vehicle)
パラメータ:
vehicle - the vehicle to set

isApplyPhysicsLocal

public boolean isApplyPhysicsLocal()

setApplyPhysicsLocal

public void setApplyPhysicsLocal(boolean applyPhysicsLocal)