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 - contact infovoid endContact(Contact contact)
contact - contact infovoid preSolve(Contact contact, Manifold oldManifold)
Note:
contact - contact infooldManifold - the old manifoldvoid postSolve(Contact contact, ContactImpulse impulse)
Note:
contact - contact infoimpulse - contact impulseCopyright © 2017. All rights reserved.