This renderer is adapted to Jbox2D version 2.2.1.1 It will probably work with other versions, but it may need a few changes
Currently implemented shapes: CircleShape, PolygonShape, EdgeShape and joints.
public Physics() {
world = new World(gravity);
new JBox2DDebugRenderer(world, 5);
}
public Physics() {
world = new World(gravity);
Jbox2DDebugConfig config = new Jbox2DDebugConfig();
config.setPixelsPerUnit(PPU);
config.setColorPolygon(Color.BLUE);
new JBox2DDebugRenderer(world, config, 5);
}
public void setTitle(String title);
public void setColorBackground(Color colorBackground);
public void setColorPolygon(Color colorPolygon);
public void setColorCircle(Color colorCircle);
public void setColorEdge(Color colorEdge);
public void setAlpha(float alpha);