D2 log 027 – Box2D debug overlay

I wanted to better understand what’s happening in the Box2D physics system. To visualize the Box2D objects in an overlay, I added an implementation of the b2Draw class.

Now when I tell Box2D to draw its debug info, it will do so through this class, using my renderer and the active camera.