Hi!
So i have just added some physics objects in my scene but i really want to see an outline or something. Therefore i thought about debug draw and have searched for some time on the internet about how to add box2d debug draw in cocos2d-x but i could not find something that fits to my scenario(i think).
How to add box2d debug draw in cocos2d-x in a fairly simple way?
Thanks!
Hi!
There is an example in the cocos2d-x package.
Please have a look at Classes/Box2dTestBed/Test.cpp
Find the places where m_debugDraw variable is used.
What do you mean by “cocos2d-x package” I have tried to google it but got nothing?
I mean this zip packet
http://www.cocos2d-x.org/filedown/cocos2d-x-3.10.zip
It is the zip including all the cocos2d-x source code files and examples.
1 Like