I'm using LibGDX with Box2D and I've two bodies. I just need to know that they have collided.
So, I just need a boolean output.
Example:
if (bodyA.collision(bodyB) == true) {
// Do something
}
How can I do this?
If it is too complicated, can I detect if two PolygonShape intersect?