com.jme3.bullet.collision
クラス PhysicsCollisionObject

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

public abstract class PhysicsCollisionObject
extends java.lang.Object
implements Savable

Base class for collision objects (PhysicsRigidBody, PhysicsGhostObject)


フィールドの概要
static int COLLISION_GROUP_01
           
static int COLLISION_GROUP_02
           
static int COLLISION_GROUP_03
           
static int COLLISION_GROUP_04
           
static int COLLISION_GROUP_05
           
static int COLLISION_GROUP_06
           
static int COLLISION_GROUP_07
           
static int COLLISION_GROUP_08
           
static int COLLISION_GROUP_09
           
static int COLLISION_GROUP_10
           
static int COLLISION_GROUP_11
           
static int COLLISION_GROUP_12
           
static int COLLISION_GROUP_13
           
static int COLLISION_GROUP_14
           
static int COLLISION_GROUP_15
           
static int COLLISION_GROUP_16
           
static int COLLISION_GROUP_NONE
           
 
コンストラクタの概要
PhysicsCollisionObject()
           
 
メソッドの概要
 void addCollideWithGroup(int collisionGroup)
          Add a group that this object will collide with.
 Spatial createDebugShape(AssetManager manager)
          creates a debug shape for this CollisionObject
 Spatial debugShape()
           
 void detachDebugShape()
          Removes the debug shape
 int getCollideWithGroups()
          Gets the bitmask of collision groups that this object collides with.
 int getCollisionGroup()
          Returns the collision group for this collision shape
 CollisionShape getCollisionShape()
           
 java.lang.Object getUserObject()
           
 void read(JmeImporter e)
           
 void removeCollideWithGroup(int collisionGroup)
          Remove a group from the list this object collides with.
 void setCollideWithGroups(int collisionGroups)
          Directly set the bitmask for collision groups that this object collides with.
 void setCollisionGroup(int collisionGroup)
          Sets the collision group number for this physics object.
 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 setUserObject(java.lang.Object userObject)
           
 void write(JmeExporter e)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

COLLISION_GROUP_NONE

public static final int COLLISION_GROUP_NONE
関連項目:
定数フィールド値

COLLISION_GROUP_01

public static final int COLLISION_GROUP_01
関連項目:
定数フィールド値

COLLISION_GROUP_02

public static final int COLLISION_GROUP_02
関連項目:
定数フィールド値

COLLISION_GROUP_03

public static final int COLLISION_GROUP_03
関連項目:
定数フィールド値

COLLISION_GROUP_04

public static final int COLLISION_GROUP_04
関連項目:
定数フィールド値

COLLISION_GROUP_05

public static final int COLLISION_GROUP_05
関連項目:
定数フィールド値

COLLISION_GROUP_06

public static final int COLLISION_GROUP_06
関連項目:
定数フィールド値

COLLISION_GROUP_07

public static final int COLLISION_GROUP_07
関連項目:
定数フィールド値

COLLISION_GROUP_08

public static final int COLLISION_GROUP_08
関連項目:
定数フィールド値

COLLISION_GROUP_09

public static final int COLLISION_GROUP_09
関連項目:
定数フィールド値

COLLISION_GROUP_10

public static final int COLLISION_GROUP_10
関連項目:
定数フィールド値

COLLISION_GROUP_11

public static final int COLLISION_GROUP_11
関連項目:
定数フィールド値

COLLISION_GROUP_12

public static final int COLLISION_GROUP_12
関連項目:
定数フィールド値

COLLISION_GROUP_13

public static final int COLLISION_GROUP_13
関連項目:
定数フィールド値

COLLISION_GROUP_14

public static final int COLLISION_GROUP_14
関連項目:
定数フィールド値

COLLISION_GROUP_15

public static final int COLLISION_GROUP_15
関連項目:
定数フィールド値

COLLISION_GROUP_16

public static final int COLLISION_GROUP_16
関連項目:
定数フィールド値
コンストラクタの詳細

PhysicsCollisionObject

public PhysicsCollisionObject()
メソッドの詳細

setCollisionShape

public 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.

パラメータ:
collisionShape - the CollisionShape to set

getCollisionShape

public CollisionShape getCollisionShape()
戻り値:
the CollisionShape of this PhysicsNode, to be able to reuse it with other physics nodes (increases performance)

getCollisionGroup

public int getCollisionGroup()
Returns the collision group for this collision shape

戻り値:

setCollisionGroup

public void setCollisionGroup(int collisionGroup)
Sets the collision group number for this physics object.
The groups are integer bit masks and some pre-made variables are available in CollisionObject. All physics objects are by default in COLLISION_GROUP_01.
Two object will collide when one of the partys has the collisionGroup of the other in its collideWithGroups set.

パラメータ:
collisionGroup - the collisionGroup to set

addCollideWithGroup

public void addCollideWithGroup(int collisionGroup)
Add a group that this object will collide with.
Two object will collide when one of the partys has the collisionGroup of the other in its collideWithGroups set.

パラメータ:
collisionGroup -

removeCollideWithGroup

public void removeCollideWithGroup(int collisionGroup)
Remove a group from the list this object collides with.

パラメータ:
collisionGroup -

setCollideWithGroups

public void setCollideWithGroups(int collisionGroups)
Directly set the bitmask for collision groups that this object collides with.

パラメータ:
collisionGroup -

getCollideWithGroups

public int getCollideWithGroups()
Gets the bitmask of collision groups that this object collides with.

戻り値:

createDebugShape

public Spatial createDebugShape(AssetManager manager)
creates a debug shape for this CollisionObject

パラメータ:
manager -
戻り値:

debugShape

public Spatial debugShape()

detachDebugShape

public void detachDebugShape()
Removes the debug shape


getUserObject

public java.lang.Object getUserObject()
戻り値:
the userObject

setUserObject

public void setUserObject(java.lang.Object userObject)
パラメータ:
userObject - the userObject to set

write

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

read

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