I've read all the posts about how to integrate and build Box2d. I've successfully built test code for cocos2d and Box2d. But I want to make sure about one more thing. If you visit the CURRENT documentation webpage for Box2d (http://www.box2d.org/manual.html), you see stuff like this:
b2CircleDef circleDef;
circleDef.radius = 3.0f;
circleDef.density = 2.5f;
b2Shape* myShape = myBody->CreateShape(&circleDef);
As far as I can tell, the version of Box2d shipping with cocos2d 0.8.1 is newer than this, and it's completely incompatible (for example, b2Body no longer has a CreateShape method). Moreover, the documentation in svn has not been updated, so it seems that the new API has no documentation whatsoever (other than the source itself, of course).
Have I correctly described the state of the world? If so, some questions:
- Is there a version number for the version of Box2d that we cocos2d developers have? E.g., is it 2.1 or 3.0? It would be very helpful to start referring to this new version by a searchable name, other than just Google searches like [xcode cocos2d box2d broken hate angry].
- Is there somewhere in the Box2d community that summarizes the API changes? For example, riq has helpfully published guides like "to migrate your code from version X of cocos2d to version Y, make the following five changes: [...]" Does something like that exist for Box2d?
- Another question for those following the Box2d community: any idea why such drastic changes happened to the API? I'm sure they're great and very easy for any experienced Box2d developer to follow, but these changes broke every single tutorial and even the smallest Hello World apps out on the web, so the experience for novice Box2d developers like me has been pretty poor.