yes i saw it, you are right i will do it. the problem is this is my first time i use Box2D and dont understand everything in your code but slowly i do.
i understand now how i can detect the collision.
i will move my vehicle with SB and check collision with Box2d, hopefully i will get what i need.
my first game will be something very simple after that i will do a much more complex racing game.
There is something that i still have not understood correctly. if my vehicle that has the mass of about 32 hits the ground that has the mass of 0 and ground hold the vehicle, both are box2d dynamic bodies, my logic say that the object with more mass should move the object with less mass?! is it correct?
the reason i ask i would like to add walls to my game, and if my car will touch the walls it will stay on the road and move along the curved walls.
but if i move my vehicle with SB how can i mix that?? the collision is done with box2d so do i also need to move it with box2d? to get that result?
now i just destroy the car (and draw an explosion) when my car hit the walls, i would like to destroy it only if the car hits the walls more the 2 sec then explode...
give it like a hit value and if its on 0 destory, and every touch this value go down (let say it starts with 10 and go down by every touch with wall until 0 explode)
how could i do something like this?
thank you for your help