I use box2dweb. I am trying to develop a game. At some point I need to find out the contact point between a “Circle” and “Box”. All I know is it can be done using b2ContactListener. We can receive contact data by implementing b2ContactListener using Post-Solve Event. Please help!
Share
You are on the right track there are various events you can hook into with the b2ContactListener:
Just remove the postSolve code and depending on what you need to do hook into the appropriate events.
Seth ladd has some great articles on his blog about collision/reacting to them. This is where I picked up these bits so full credit goes to him.
I hope this helps.
Thanks,
Gary