public class PhysicsCollisionEvent
extends java.util.EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_ADDED |
static int |
TYPE_DESTROYED |
static int |
TYPE_PROCESSED |
| Constructor and Description |
|---|
PhysicsCollisionEvent(int type,
PhysicsCollisionObject source,
PhysicsCollisionObject nodeB,
com.bulletphysics.collision.narrowphase.ManifoldPoint cp) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
used by event factory, called when event is destroyed
|
float |
getAppliedImpulse() |
float |
getAppliedImpulseLateral1() |
float |
getAppliedImpulseLateral2() |
float |
getCombinedFriction() |
float |
getCombinedRestitution() |
float |
getDistance1() |
int |
getIndex0() |
int |
getIndex1() |
com.jme3.math.Vector3f |
getLateralFrictionDir1() |
com.jme3.math.Vector3f |
getLateralFrictionDir2() |
int |
getLifeTime() |
com.jme3.math.Vector3f |
getLocalPointA() |
com.jme3.math.Vector3f |
getLocalPointB() |
com.jme3.scene.Spatial |
getNodeA() |
com.jme3.scene.Spatial |
getNodeB() |
com.jme3.math.Vector3f |
getNormalWorldOnB() |
PhysicsCollisionObject |
getObjectA() |
PhysicsCollisionObject |
getObjectB() |
int |
getPartId0() |
int |
getPartId1() |
com.jme3.math.Vector3f |
getPositionWorldOnA() |
com.jme3.math.Vector3f |
getPositionWorldOnB() |
int |
getType() |
java.lang.Object |
getUserPersistentData() |
boolean |
isLateralFrictionInitialized() |
void |
refactor(int type,
PhysicsCollisionObject source,
PhysicsCollisionObject nodeB,
com.bulletphysics.collision.narrowphase.ManifoldPoint cp)
used by event factory, called when event reused
|
public static final int TYPE_ADDED
public static final int TYPE_PROCESSED
public static final int TYPE_DESTROYED
public PhysicsCollisionEvent(int type,
PhysicsCollisionObject source,
PhysicsCollisionObject nodeB,
com.bulletphysics.collision.narrowphase.ManifoldPoint cp)
public void clean()
public void refactor(int type,
PhysicsCollisionObject source,
PhysicsCollisionObject nodeB,
com.bulletphysics.collision.narrowphase.ManifoldPoint cp)
type - the desired typesource - the desired first object (alias created)nodeB - the desired 2nd object (alias created)cp - the desired manifold (alias created)public int getType()
public com.jme3.scene.Spatial getNodeA()
public com.jme3.scene.Spatial getNodeB()
public PhysicsCollisionObject getObjectA()
public PhysicsCollisionObject getObjectB()
public float getAppliedImpulse()
public float getAppliedImpulseLateral1()
public float getAppliedImpulseLateral2()
public float getCombinedFriction()
public float getCombinedRestitution()
public float getDistance1()
public int getIndex0()
public int getIndex1()
public com.jme3.math.Vector3f getLateralFrictionDir1()
public com.jme3.math.Vector3f getLateralFrictionDir2()
public boolean isLateralFrictionInitialized()
public int getLifeTime()
public com.jme3.math.Vector3f getLocalPointA()
public com.jme3.math.Vector3f getLocalPointB()
public com.jme3.math.Vector3f getNormalWorldOnB()
public int getPartId0()
public int getPartId1()
public com.jme3.math.Vector3f getPositionWorldOnA()
public com.jme3.math.Vector3f getPositionWorldOnB()
public java.lang.Object getUserPersistentData()