com.jme3.bullet.objects
クラス PhysicsGhostObject

java.lang.Object
  上位を拡張 com.jme3.bullet.collision.PhysicsCollisionObject
      上位を拡張 com.jme3.bullet.objects.PhysicsGhostObject
すべての実装されたインタフェース:
Savable
直系の既知のサブクラス:
GhostControl

public class PhysicsGhostObject
extends PhysicsCollisionObject

From Bullet manual:
GhostObject can keep track of all objects that are overlapping. By default, this overlap is based on the AABB. This is useful for creating a character controller, collision sensors/triggers, explosions etc.


フィールドの概要
 
クラス com.jme3.bullet.collision.PhysicsCollisionObject から継承されたフィールド
COLLISION_GROUP_01, COLLISION_GROUP_02, COLLISION_GROUP_03, COLLISION_GROUP_04, COLLISION_GROUP_05, COLLISION_GROUP_06, COLLISION_GROUP_07, COLLISION_GROUP_08, COLLISION_GROUP_09, COLLISION_GROUP_10, COLLISION_GROUP_11, COLLISION_GROUP_12, COLLISION_GROUP_13, COLLISION_GROUP_14, COLLISION_GROUP_15, COLLISION_GROUP_16, COLLISION_GROUP_NONE
 
コンストラクタの概要
PhysicsGhostObject()
           
PhysicsGhostObject(CollisionShape shape)
           
PhysicsGhostObject(Spatial child, CollisionShape shape)
           
 
メソッドの概要
 void destroy()
          destroys this PhysicsGhostNode and removes it from memory
 float getCcdMotionThreshold()
           
 float getCcdSquareMotionThreshold()
           
 float getCcdSweptSphereRadius()
           
 com.bulletphysics.collision.dispatch.PairCachingGhostObject getObjectId()
          used internally
 PhysicsCollisionObject getOverlapping(int index)
           
 int getOverlappingCount()
           
 java.util.List<PhysicsCollisionObject> getOverlappingObjects()
          Another Object is overlapping with this GhostNode, if and if only there CollisionShapes overlaps.
 Vector3f getPhysicsLocation()
           
 Vector3f getPhysicsLocation(Vector3f trans)
           
 Quaternion getPhysicsRotation()
           
 Quaternion getPhysicsRotation(Quaternion rot)
           
 Matrix3f getPhysicsRotationMatrix()
           
 Matrix3f getPhysicsRotationMatrix(Matrix3f rot)
           
 Transform getPhysicsTransform()
           
 void read(JmeImporter e)
           
 void setCcdMotionThreshold(float threshold)
           
 void setCcdSweptSphereRadius(float radius)
           
 void setCollisionShape(CollisionShape collisionShape)
          Sets a CollisionShape to this physics object, note that the object should not be in the physics space when adding a new collision shape as it is rebuilt on the physics side.
 void setPhysicsLocation(Vector3f location)
          Sets the physics object location
 void setPhysicsRotation(Matrix3f rotation)
          Sets the physics object rotation
 void setPhysicsRotation(Quaternion rotation)
          Sets the physics object rotation
 void write(JmeExporter e)
           
 
クラス com.jme3.bullet.collision.PhysicsCollisionObject から継承されたメソッド
addCollideWithGroup, createDebugShape, debugShape, detachDebugShape, getCollideWithGroups, getCollisionGroup, getCollisionShape, getUserObject, removeCollideWithGroup, setCollideWithGroups, setCollisionGroup, setUserObject
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PhysicsGhostObject

public PhysicsGhostObject()

PhysicsGhostObject

public PhysicsGhostObject(CollisionShape shape)

PhysicsGhostObject

public PhysicsGhostObject(Spatial child,
                          CollisionShape shape)
メソッドの詳細

setCollisionShape

public void setCollisionShape(CollisionShape collisionShape)
クラス PhysicsCollisionObject の記述:
Sets a CollisionShape to this physics object, note that the object should not be in the physics space when adding a new collision shape as it is rebuilt on the physics side.

オーバーライド:
クラス PhysicsCollisionObject 内の setCollisionShape
パラメータ:
collisionShape - the CollisionShape to set

setPhysicsLocation

public void setPhysicsLocation(Vector3f location)
Sets the physics object location

パラメータ:
location - the location of the actual physics object

setPhysicsRotation

public void setPhysicsRotation(Matrix3f rotation)
Sets the physics object rotation

パラメータ:
rotation - the rotation of the actual physics object

setPhysicsRotation

public void setPhysicsRotation(Quaternion rotation)
Sets the physics object rotation

パラメータ:
rotation - the rotation of the actual physics object

getPhysicsTransform

public Transform getPhysicsTransform()
戻り値:
the physicsLocation

getPhysicsLocation

public Vector3f getPhysicsLocation(Vector3f trans)
戻り値:
the physicsLocation

getPhysicsRotation

public Quaternion getPhysicsRotation(Quaternion rot)
戻り値:
the physicsLocation

getPhysicsRotationMatrix

public Matrix3f getPhysicsRotationMatrix(Matrix3f rot)
戻り値:
the physicsLocation

getPhysicsLocation

public Vector3f getPhysicsLocation()
戻り値:
the physicsLocation

getPhysicsRotation

public Quaternion getPhysicsRotation()
戻り値:
the physicsLocation

getPhysicsRotationMatrix

public Matrix3f getPhysicsRotationMatrix()

getObjectId

public com.bulletphysics.collision.dispatch.PairCachingGhostObject getObjectId()
used internally


destroy

public void destroy()
destroys this PhysicsGhostNode and removes it from memory


getOverlappingObjects

public java.util.List<PhysicsCollisionObject> getOverlappingObjects()
Another Object is overlapping with this GhostNode, if and if only there CollisionShapes overlaps. They could be both regular PhysicsRigidBodys or PhysicsGhostObjects.

戻り値:
All CollisionObjects overlapping with this GhostNode.

getOverlappingCount

public int getOverlappingCount()
戻り値:
With how many other CollisionObjects this GhostNode is currently overlapping.

getOverlapping

public PhysicsCollisionObject getOverlapping(int index)
パラメータ:
index - The index of the overlapping Node to retrieve.
戻り値:
The Overlapping CollisionObject at the given index.

setCcdSweptSphereRadius

public void setCcdSweptSphereRadius(float radius)

setCcdMotionThreshold

public void setCcdMotionThreshold(float threshold)

getCcdSweptSphereRadius

public float getCcdSweptSphereRadius()

getCcdMotionThreshold

public float getCcdMotionThreshold()

getCcdSquareMotionThreshold

public float getCcdSquareMotionThreshold()

write

public void write(JmeExporter e)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
オーバーライド:
クラス PhysicsCollisionObject 内の write
例外:
java.io.IOException

read

public void read(JmeImporter e)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
オーバーライド:
クラス PhysicsCollisionObject 内の read
例外:
java.io.IOException