Guys im strugling for some time now.
I have a problem with the damned contact though it seems simple at a first glance!
So its like this. I want to find out whos touching a certain object like in the code below:
Code: Select all
So the code is doing something like this: if there is a contact with the oneBody, makes body2 the body in contact with oneBody.
If there is no contact it doesnt do anything.
All works fine untill you find out that even though noone is touching oneBody still body2 becomes a certain body.
Thats because from what i read the aabbs of the 2 bodies overlap.
Now thats breaking my game engine! How can i check if 2 bodies really are touching and not their aabbs overlap.
I would prefer not to involve the contact listener if its possible (since its a simple line of code).
Its good to mention that i use box2d 2.02 version.