I'm using Box2D with Cocos2D which is working great BTW.
But to properly composite the box2d debug drawing with the other cocos drawing, I commented the call to DrawDebugData() inside the Step() in b2World.cpp and also made the visibility of the method DrawDebugData() public in b2World.h so that I can call it when I need to in the context of my application.
I was wondering if anyone else thought it would be a good idea to make these changes part of Box2D by default. (at least making visibility public would cut the required edits in half for cocos2d users 😉
Thanks for a great lib!!!
But to properly composite the box2d debug drawing with the other cocos drawing, I commented the call to DrawDebugData() inside the Step() in b2World.cpp and also made the visibility of the method DrawDebugData() public in b2World.h so that I can call it when I need to in the context of my application.
I was wondering if anyone else thought it would be a good idea to make these changes part of Box2D by default. (at least making visibility public would cut the required edits in half for cocos2d users 😉
Thanks for a great lib!!!