Page 2 of 2
Re: debug draw and polygon
Posted: Tue Nov 07, 2017 2:53 pm
by FLYNSXCOOL
iforce2d What is the file include this scene??
Please give me this code.
Please look at the source code (DebugDraw.cpp), all shapes are already implemented.
I use code from DebugDraw.cpp originally!!
Re: debug draw and polygon
Posted: Tue Nov 07, 2017 3:09 pm
by iforce2d
I gave you the link for this already:
https://www.iforce2d.net/rube/?panel=loaders
Look for the SDL2 download, all source and examples are included.
Re: debug draw and polygon
Posted: Tue Nov 07, 2017 3:14 pm
by FLYNSXCOOL
Re: debug draw and polygon
Posted: Tue Nov 07, 2017 7:06 pm
by FLYNSXCOOL
You can say me about
World.DrawDebugData();
a little normal documentation for box2d. I didn't think it works that simple
Re: debug draw and polygon
Posted: Wed Nov 08, 2017 1:44 pm
by iforce2d
I thought you would have already known the basics. If you google for "box2d debug draw" you will probably get my tutorial page as the first result:
http://www.iforce2d.net/b2dtut/debug-draw
You can also see how it works by referring to the standard Box2D testbed.
Re: debug draw and polygon
Posted: Thu Nov 09, 2017 5:09 pm
by FLYNSXCOOL