Scrolling Box2D DebugDraw
- by onedayitwillmake
I'm developing a game using Box2D (javascript implementation - Box2DWeb), and I would like to know how I can pan the debug draw. I know the usual answer is - don't use debug draw, it's just for debugging. I'm not, however not all my objects are on the same screen, and i'd like to see where they are in the physics representation.
How can I pan the debug drawing?
As you can see the debug draw stuff, is show on the top left, but it only shows a small part of the world.
Here is an example of what I mean:
http://onedayitwillmake.com/ChuClone/
The game is open source, If you'd like to poke through and note something that perhaps i'm doing something that is obviously wrong:
https://github.com/onedayitwillmake/ChuClone