debug draw and polygon

General discussion about Box2D tutorials
FLYNSXCOOL
Posts: 25
Joined: Tue Sep 19, 2017 4:30 pm

Re: debug draw and polygon

Post by FLYNSXCOOL » Tue Nov 07, 2017 2:53 pm

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!!

iforce2d
Site Admin
Posts: 860
Joined: Sat Dec 22, 2012 7:20 pm

Re: debug draw and polygon

Post by iforce2d » Tue Nov 07, 2017 3:09 pm

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.

FLYNSXCOOL
Posts: 25
Joined: Tue Sep 19, 2017 4:30 pm

Re: debug draw and polygon

Post by FLYNSXCOOL » Tue Nov 07, 2017 3:14 pm

:mrgreen: :mrgreen: :mrgreen: :mrgreen:

I watched all!
I haven't found this scene here. :cry: :cry: :cry: :cry: :cry: :cry: :cry:
Last edited by FLYNSXCOOL on Wed Nov 08, 2017 1:55 am, edited 1 time in total.

FLYNSXCOOL
Posts: 25
Joined: Tue Sep 19, 2017 4:30 pm

Re: debug draw and polygon

Post by FLYNSXCOOL » Tue Nov 07, 2017 7:06 pm

Image

You can say me about World.DrawDebugData();

a little normal documentation for box2d. I didn't think it works that simple

iforce2d
Site Admin
Posts: 860
Joined: Sat Dec 22, 2012 7:20 pm

Re: debug draw and polygon

Post by iforce2d » Wed Nov 08, 2017 1:44 pm

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.

FLYNSXCOOL
Posts: 25
Joined: Tue Sep 19, 2017 4:30 pm

Re: debug draw and polygon

Post by FLYNSXCOOL » Thu Nov 09, 2017 5:09 pm

You can also see how it works by referring to the standard Box2D testbed.
Yes I found a solution in the source code testbed, and then I saw a piece of code I was looking for in your code :mrgreen: :mrgreen: :mrgreen: :D

Post Reply