|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.bullet.collision.PhysicsCollisionObject
com.jme3.bullet.objects.PhysicsGhostObject
public class PhysicsGhostObject
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.
フィールドの概要 |
---|
コンストラクタの概要 | |
---|---|
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 |
コンストラクタの詳細 |
---|
public PhysicsGhostObject()
public PhysicsGhostObject(CollisionShape shape)
public PhysicsGhostObject(Spatial child, CollisionShape shape)
メソッドの詳細 |
---|
public void setCollisionShape(CollisionShape collisionShape)
PhysicsCollisionObject
の記述:
PhysicsCollisionObject
内の setCollisionShape
collisionShape
- the CollisionShape to setpublic void setPhysicsLocation(Vector3f location)
location
- the location of the actual physics objectpublic void setPhysicsRotation(Matrix3f rotation)
rotation
- the rotation of the actual physics objectpublic void setPhysicsRotation(Quaternion rotation)
rotation
- the rotation of the actual physics objectpublic Transform getPhysicsTransform()
public Vector3f getPhysicsLocation(Vector3f trans)
public Quaternion getPhysicsRotation(Quaternion rot)
public Matrix3f getPhysicsRotationMatrix(Matrix3f rot)
public Vector3f getPhysicsLocation()
public Quaternion getPhysicsRotation()
public Matrix3f getPhysicsRotationMatrix()
public com.bulletphysics.collision.dispatch.PairCachingGhostObject getObjectId()
public void destroy()
public java.util.List<PhysicsCollisionObject> getOverlappingObjects()
public int getOverlappingCount()
public PhysicsCollisionObject getOverlapping(int index)
index
- The index of the overlapping Node to retrieve.
public void setCcdSweptSphereRadius(float radius)
public void setCcdMotionThreshold(float threshold)
public float getCcdSweptSphereRadius()
public float getCcdMotionThreshold()
public float getCcdSquareMotionThreshold()
public void write(JmeExporter e) throws java.io.IOException
Savable
内の write
PhysicsCollisionObject
内の write
java.io.IOException
public void read(JmeImporter e) throws java.io.IOException
Savable
内の read
PhysicsCollisionObject
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |