i had been using the b2debugDraw by vinova which can be found at this link Vinova github link ,since the cocos2dx update to V3.x there have been changes to the draw function that needs to be overidden.I see people having problems with it as I did so just thought of sharing it .B2DebugDraw.zip (7.0 KB)
The usage index is unchanged from vinova ,
this->addChild(B2DebugDrawLayer::create(world, PTM_RATIO), 9999);
Hi thanks for sharing this but I tried to make an example without any success. Can you please set me a basic example with a circle or a rectangle.
What modifications I have to do in HelloWorld.cpp ?