Where is SetDrawScale for c++?

I know the flash version of box2d has SetDrawScale but I cannot seem to find anything about it in the c++ version. I need to use a ratio to scale all of the transformations up. It seems as though all of my b2objects have a capped velocity, which is far too slow for my purposes. Anyone have any info?

Thanks
If it's purely drawing that you are concerned about, that is not part of Box2D - you will need to scale everything yourself before you draw it.

However it sounds like the dimensions you are using are not well suited for the default values Box2D uses. The default values are tuned to produce the best results for scenes where dynamic objects are around 1 - 10 units in size. The typical practice is to scale everything in the world up/down so that your dynamic objects are in that range.

You can adjust the default values too if you prefer, but that is only attacking the symptom, not the cause of the problem:
http://www.iforce2d.net/b2dtut/gotchas
irresistible force wrote:
If it's purely drawing that you are concerned about, that is not part of Box2D - you will need to scale everything yourself before you draw it.

However it sounds like the dimensions you are using are not well suited for the default values Box2D uses. The default values are tuned to produce the best results for scenes where dynamic objects are around 1 - 10 units in size. The typical practice is to scale everything in the world up/down so that your dynamic objects are in that range.

You can adjust the default values too if you prefer, but that is only attacking the symptom, not the cause of the problem:
http://www.iforce2d.net/b2dtut/gotchas


Hey,
I'm actually referring to the debug draw feature included with box2d. I can already scale all of the coordinates of my graphics but I can't find anywhere to scale the debug draw, so the two graphics systems won't match up after I multiply my stuff by a ratio. I know the flash version had a function for this, SetDrawScale, so c++ must as well? I don't really want to go and modify the box2d source code too much.

Thanks
bump
The functions of the debug draw class are all virtual functions, so they actually are your graphics (yes, there is an example implementation for OpenGL included with the testbed, but that is not part of the Box2D library itself). Just change the debug draw functions as necessary.
That was easy enough.. thanks for the tip, got it working :]

Original thread: https://box2d.org/forum/viewtopic.php?t=8014