Hi, I'm trying to figure out how to use box2d collisions for the iphone. I used the box2d version bundled in the latest version of cocos2d. I used to use box2d in as3 and remember add, persist etc. From what I have seen the methods in the b2ContactListener class have changed to beginContact, endContact etc. This wouldn't be very hard to deal with except that there is no b2ContactListener class in my project. Is b2ContactListener part of the c++ version of box2d? Those methods were so helpful. From what I have so far, box2d compiles and runs my simulation fine. I just wanted a way to find the collisions start and end. I thought b2ContactManager might get the job done but I'd really like to be able to use these methods (or whatever they changed to/are called in c++) for convenience sake. Any suggestions?
Box2d Collision Method
General DiscussionYou need to implement a class that derives from b2ContactListener and register it with your world using SetContactListener. More details are in the manual. You can also find examples in the C++ testbed.
Original thread: https://box2d.org/forum/viewtopic.php?t=5571