Hi I am new to this forum and making my first post.
I would like to know if it is possible to do concave or irregular curve shapes with SDL & Box2d?
My approach:
1) I have tried to dig through box2d to get the b2world to return me information about the contacts and computed results after collision occurred for 2 shapes.
2) Then alter or extend some codes from the box2d to link with my created class of irregular shapes using SDL's alpha channel to do a more in-depth collision detection.
3) Do the computation for the impact of the collision and then render.
Does anyone thinks there's a better way to do it? or other possible solutions?
Also, I also have trouble with digging and understanding contacts and the contactlistener to know if which object is being collided.
Thanks for anyone who replies me in advance! ^^
I would like to know if it is possible to do concave or irregular curve shapes with SDL & Box2d?
My approach:
1) I have tried to dig through box2d to get the b2world to return me information about the contacts and computed results after collision occurred for 2 shapes.
2) Then alter or extend some codes from the box2d to link with my created class of irregular shapes using SDL's alpha channel to do a more in-depth collision detection.
3) Do the computation for the impact of the collision and then render.
Does anyone thinks there's a better way to do it? or other possible solutions?
Also, I also have trouble with digging and understanding contacts and the contactlistener to know if which object is being collided.
Thanks for anyone who replies me in advance! ^^