Skip to content

Instantly share code, notes, and snippets.

@chiguireitor
Created May 18, 2013 13:18
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