B2DebugDraw
From Box2D Wiki
| b2DebugDraw | |
|---|---|
| Box2D/Dynamics | |
| Visibility | Public |
| Manual reference | [1] |
| API reference | [2] |
| Source reference |
|
b2DebugDraw provides a simple mechanism for displaying the world, intended for debugging use only. For more advanced usages, you should implement your own drawing mechanism.
The specifics of usage depend on implementation, but all classes allow you to selectively display:
- shape outlines
- joint connectivity
- core shapes (for continuous collision)
- broad-phase axis-aligned bounding boxes (AABBs), including the world AABB
- polygon oriented bounding boxes (OBBs)
- broadphase pairs (potential contacts)
- center of mass
Available implementations
Box2D itself is agnostic of display, but there exist implementations for a variety of outputs. Please add your own links here.
In the C++ package:
- OpenGL
- iPhone
In the Flash package:
- Flash Drawing API
In the Java package:
- Processing
- Slick2d?
In the wild:


