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 nodeA,
PhysicsCollisionObject nodeB,
long manifoldPointObjectId) |
| 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 |
getLateralFrictionDir1(com.jme3.math.Vector3f lateralFrictionDir1) |
com.jme3.math.Vector3f |
getLateralFrictionDir2() |
com.jme3.math.Vector3f |
getLateralFrictionDir2(com.jme3.math.Vector3f lateralFrictionDir2) |
int |
getLifeTime() |
com.jme3.math.Vector3f |
getLocalPointA() |
com.jme3.math.Vector3f |
getLocalPointA(com.jme3.math.Vector3f localPointA) |
com.jme3.math.Vector3f |
getLocalPointB() |
com.jme3.math.Vector3f |
getLocalPointB(com.jme3.math.Vector3f localPointB) |
com.jme3.scene.Spatial |
getNodeA() |
com.jme3.scene.Spatial |
getNodeB() |
com.jme3.math.Vector3f |
getNormalWorldOnB() |
com.jme3.math.Vector3f |
getNormalWorldOnB(com.jme3.math.Vector3f normalWorldOnB) |
PhysicsCollisionObject |
getObjectA() |
PhysicsCollisionObject |
getObjectB() |
int |
getPartId0() |
int |
getPartId1() |
com.jme3.math.Vector3f |
getPositionWorldOnA() |
com.jme3.math.Vector3f |
getPositionWorldOnA(com.jme3.math.Vector3f positionWorldOnA) |
com.jme3.math.Vector3f |
getPositionWorldOnB() |
com.jme3.math.Vector3f |
getPositionWorldOnB(com.jme3.math.Vector3f positionWorldOnB) |
int |
getType() |
boolean |
isLateralFrictionInitialized() |
void |
refactor(int type,
PhysicsCollisionObject source,
PhysicsCollisionObject nodeB,
long manifoldPointObjectId)
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 nodeA,
PhysicsCollisionObject nodeB,
long manifoldPointObjectId)
public void clean()
public void refactor(int type,
PhysicsCollisionObject source,
PhysicsCollisionObject nodeB,
long manifoldPointObjectId)
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 getLateralFrictionDir1(com.jme3.math.Vector3f lateralFrictionDir1)
public com.jme3.math.Vector3f getLateralFrictionDir2()
public com.jme3.math.Vector3f getLateralFrictionDir2(com.jme3.math.Vector3f lateralFrictionDir2)
public boolean isLateralFrictionInitialized()
public int getLifeTime()
public com.jme3.math.Vector3f getLocalPointA()
public com.jme3.math.Vector3f getLocalPointA(com.jme3.math.Vector3f localPointA)
public com.jme3.math.Vector3f getLocalPointB()
public com.jme3.math.Vector3f getLocalPointB(com.jme3.math.Vector3f localPointB)
public com.jme3.math.Vector3f getNormalWorldOnB()
public com.jme3.math.Vector3f getNormalWorldOnB(com.jme3.math.Vector3f normalWorldOnB)
public int getPartId0()
public int getPartId1()
public com.jme3.math.Vector3f getPositionWorldOnA()
public com.jme3.math.Vector3f getPositionWorldOnA(com.jme3.math.Vector3f positionWorldOnA)
public com.jme3.math.Vector3f getPositionWorldOnB()
public com.jme3.math.Vector3f getPositionWorldOnB(com.jme3.math.Vector3f positionWorldOnB)