Can someone explain the in what way works the collision detection using box2d for android. I cannot understand in what way works BBContactListener.
BBContactListener listener = new BBContactListener();
world = new BBWorld(gravity, doSleep);
world.SetContactListener(listener);
How to use that listener? Should I extend standart to create my own or how?
I did not use box2d for android, but I think the idea is the same there. You have to implement contact processing methods. That’s the way to do it in C++.
Then just pass this class to `b2World’