Accurate ContactList, does it exists?

Hi, I have noticed that the contactList right now check the contacts between the bounding boxes, not the actual shapes.
so now if i have a ball near an oblique recangle, it tells me that there is a contact even if its not true.
How can i solve this problem to make sure objects are not touching before to start the simulation?
Contacts could be created even if objects haven't touched yet. Implement a ContactListener if you want to correctly track collisions.
but the problem with the contactListener is that it check contacts only if use this in the update : m_world.Step(m_timeStep, m_iterations);

but if i start the steps all the objects moves.
I need a function that tells me if objects are touching each other before the update steps starts.
After it is started i dont care anymore.
Is it possible to do?
Usually not. One of the things Box2D does in the step is checking whether objects collide, and apply the appropriate forces. (That's kind of the point of a step)

Maybe you can call the contact solver separately, but I'm not that familiar with Box2D's internals.

However, I do think it's possible to call Step with a time of 0. That means that even though collisions will be found, objects will not actually move because Box2D will not simulate any time passing.

Try it. 🙂
I remember with ActionScript 2 there was the HitTest where you could use Flase or true to say thay it was using or not the bounding boxes.
In ActionScript3 they totally changed it... and that option is not avilable anymore.
Anyone of you knows how to recreate that awesome thing that as2 had?
Here is a link to a set of AS3 functions packaged in a class that do exactly what you are asking. However, there is no built in function in flash that does this for you. HitTest from as2 was an 'overloaded' function that took either an object as the first parameter, or a set of x,y values and a boolean flag to test the shape. If the flag was false, or it you passed in a display object shape, then it only tested bounding boxes. If the flag was true AND you passed x/y values then it internally drew a smaller representation of the vector into a bitmapdata and tested the x,y value.
HitTest in as3 has been seperated into two different functions, hitTestObject, and HitTestPoint. Fundamentally, they are the same.

Incidently, there is a function in as2 that tests a bitmap against another bitmap for pixel level collision.... however it required two bitmaps with alpha channel on them. Check this reference for more information.

Original thread: https://box2d.org/forum/viewtopic.php?t=3022