public class PhysicsGhostObject extends PhysicsCollisionObject
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
locationDirty |
protected com.jme3.math.Quaternion |
tmp_inverseWorldRotation |
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, collisionGroup, collisionGroupsMask, collisionShape, objectId| Constructor and Description |
|---|
PhysicsGhostObject() |
PhysicsGhostObject(CollisionShape shape) |
PhysicsGhostObject(com.jme3.scene.Spatial child,
CollisionShape shape) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildObject() |
void |
destroy()
destroys this PhysicsGhostNode and removes it from memory
|
float |
getCcdMotionThreshold() |
float |
getCcdSquareMotionThreshold() |
float |
getCcdSweptSphereRadius() |
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.
|
protected void |
getOverlappingObjects(long objectId) |
com.jme3.math.Vector3f |
getPhysicsLocation() |
com.jme3.math.Vector3f |
getPhysicsLocation(com.jme3.math.Vector3f trans) |
com.jme3.math.Quaternion |
getPhysicsRotation() |
com.jme3.math.Quaternion |
getPhysicsRotation(com.jme3.math.Quaternion rot) |
com.jme3.math.Matrix3f |
getPhysicsRotationMatrix() |
com.jme3.math.Matrix3f |
getPhysicsRotationMatrix(com.jme3.math.Matrix3f rot) |
void |
read(com.jme3.export.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(com.jme3.math.Vector3f location)
Sets the physics object location
|
void |
setPhysicsRotation(com.jme3.math.Matrix3f rotation)
Sets the physics object rotation
|
void |
setPhysicsRotation(com.jme3.math.Quaternion rotation)
Sets the physics object rotation
|
void |
write(com.jme3.export.JmeExporter e) |
addCollideWithGroup, attachCollisionShape, finalize, finalizeNative, getCollideWithGroups, getCollisionGroup, getCollisionShape, getObjectId, getUserObject, initUserPointer, removeCollideWithGroup, setCollideWithGroups, setCollisionGroup, setUserObjectprotected boolean locationDirty
protected final com.jme3.math.Quaternion tmp_inverseWorldRotation
public PhysicsGhostObject()
public PhysicsGhostObject(CollisionShape shape)
public PhysicsGhostObject(com.jme3.scene.Spatial child,
CollisionShape shape)
protected void buildObject()
public void setCollisionShape(CollisionShape collisionShape)
PhysicsCollisionObjectsetCollisionShape in class PhysicsCollisionObjectcollisionShape - the CollisionShape to setpublic void setPhysicsLocation(com.jme3.math.Vector3f location)
location - the location of the actual physics objectpublic void setPhysicsRotation(com.jme3.math.Matrix3f rotation)
rotation - the rotation of the actual physics objectpublic void setPhysicsRotation(com.jme3.math.Quaternion rotation)
rotation - the rotation of the actual physics objectpublic com.jme3.math.Vector3f getPhysicsLocation(com.jme3.math.Vector3f trans)
public com.jme3.math.Quaternion getPhysicsRotation(com.jme3.math.Quaternion rot)
public com.jme3.math.Matrix3f getPhysicsRotationMatrix(com.jme3.math.Matrix3f rot)
public com.jme3.math.Vector3f getPhysicsLocation()
public com.jme3.math.Quaternion getPhysicsRotation()
public com.jme3.math.Matrix3f getPhysicsRotationMatrix()
public void destroy()
public java.util.List<PhysicsCollisionObject> getOverlappingObjects()
protected void getOverlappingObjects(long objectId)
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(com.jme3.export.JmeExporter e)
throws java.io.IOException
write in interface com.jme3.export.Savablewrite in class PhysicsCollisionObjectjava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter e)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class PhysicsCollisionObjectjava.io.IOException