Cocos2d + Box2d - how to debug/show bodies?
问题 I've created a pretty simple setup using Cocos2d (2.0) and Box2d that comes packaged with it. I have a few bodies in my world, but don't have sprites linked up with them yet and I want to debug their orientations, positions, etc. This seems like a pretty standard task, but I could not find out how to do this easily. From my research it seems related to these methods: _world->SetDebugDraw(...); _world->DrawDebugData(...); // and the GLES-Render class Help? 回答1: I figured it out in case anyone