I don't have any idea about the box2d collision detection in android. I googled and got results that suggest to use the contact listener but I don't know how to use it in android java.
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
OMG! that was the best help I've found! Thankyou Skyuzo. This code works for JBox2D (I haven't tried Android however, but Android would be using JBox2D instead of the C++ Box2D) Inside the ContactListener, this code must be placed handling the contacts: Note This code should only be initialized once.
|
|||||
|
|
If you're using JBox2D, you can use
|
|||
|
|
