public interface ContactListener
Modifier and Type | Method and Description |
---|---|
void |
beginContact(Contact contact)
Called when two fixtures begin to touch.
|
void |
endContact(Contact contact)
Called when two fixtures cease to touch.
|
void |
postSolve(Contact contact,
ContactImpulse impulse)
This lets you inspect a contact after the solver is finished.
|
void |
preSolve(Contact contact,
Manifold oldManifold)
This is called after a contact is updated.
|
void beginContact(Contact contact)
contact
- void endContact(Contact contact)
contact
- void preSolve(Contact contact, Manifold oldManifold)
contact
- oldManifold
- void postSolve(Contact contact, ContactImpulse impulse)
contact
- impulse
- this is usually a pooled variable, so it will be modified after
this callCopyright © 2017. All Rights Reserved.