public interface ContactListener
Bullet implements persistent contacts, so manifold IDs and point IDs are sometimes reused from step to step.
| Modifier and Type | Method and Description |
|---|---|
void |
onContactEnded(long manifoldId)
Invoked immediately after a contact manifold is removed.
|
void |
onContactProcessed(PhysicsCollisionObject pcoA,
PhysicsCollisionObject pcoB,
long manifoldPointId)
Invoked immediately after a contact point is refreshed without being
removed.
|
void |
onContactStarted(long manifoldId)
Invoked immediately after a contact manifold is created.
|
void onContactEnded(long manifoldId)
manifoldId - the native ID of the btPersistentManifold (not
zero)void onContactProcessed(PhysicsCollisionObject pcoA, PhysicsCollisionObject pcoB, long manifoldPointId)
pcoA - the first involved object (not null)pcoB - the 2nd involved object (not null)manifoldPointId - the native ID of the btManifoldPoint (not
zero)void onContactStarted(long manifoldId)
manifoldId - the native ID of the btPersistentManifold (not
zero)