SFML community forums
General => General discussions => Topic started by: prchakal on August 12, 2012, 10:56:16 am
-
Hi,
Im searching for a debug draw for SFML2 and Box2D 2.2.1, because i only find old versions on DebugDraw.
Some problems on old classes:
sf::Shape polygon; <- Shape cannot be created more, it is protected
polygon.AddPoint <- Add point to poligon dont work :*
the correct class name is: b2Draw not b2DebugDraw
Can anyone share it?
-
What are you talking about?
What is a DebugDraw? If you've already some code it should be quite easy to port it, so you'd need to post it here.
Don't assume everyone knows what you're trying to do. ;)
-
On title have BOX2D, and debug draw is a feature of it.
-
It's really not a difficult class to implement and the one you've found working in SFML version x will be trivial to port to whatever version you're using.
If you need help porting that code, point us to the code and tell us which part is giving you trouble.
-
On title have BOX2D, and debug draw is a feature of it.
I see...
You should always provide enough information, e.g. a link to that class/manual/etc. Because if I now want to find out what exactly you're talking about I'd have to search for it...
-
Hi Walker,
Here you can get one and the required files:
https://github.com/slok/Box2D-and-SFML-demo (https://github.com/slok/Box2D-and-SFML-demo)
Path:
/src/DebugDraw.cpp
/src/DebugDraw.h
/src/Globals.h