Scrolling Box2D DebugDraw

Posted by onedayitwillmake on Game Development See other posts from Game Development or by onedayitwillmake
Published on 2011-06-30T04:17:26Z Indexed on 2011/06/30 8:31 UTC
Read the original article Hit count: 251

Filed under:
|

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.

Box2D debug draw is on the top left 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

© Game Development or respective owner

Related posts about box2d

Related posts about JavaScript