Created
May 18, 2013 13:18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ContactListener contactListener = new ContactListener() { | |
int bodyContactSemaphore = 0; | |
@Override | |
public void beginContact(Contact contact) { | |
bodyContactSemaphore++; | |
// check if the contact bodies are valid | |
// if they are, take action according to | |
// the user data of the bodies. | |
} | |
@Override | |
public void endContact(Contact contact) { | |
bodyContactSemaphore--; | |
} | |
. | |
. | |
. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment