Skip to content

Simple debug draw class for Box 2d in combination with processing

Notifications You must be signed in to change notification settings

clankill3r/Box2dP5DebugDraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Box2dP5DebugDraw

Simple debug draw class for Box 2d in combination with processing

USEAGE:

debugDraw = new Box2dP5DebugDraw(box2d, g);
 
debugDraw.setFlags(
        DebugDraw.e_shapeBit +
        DebugDraw.e_jointBit
        //DebugDraw.e_aabbBit
        //DebugDraw.e_pairBit +
        //DebugDraw.e_centerOfMassBit +
        //DebugDraw.e_dynamicTreeBit +
        //DebugDraw.e_wireframeDrawingBit
 
); 
box2d.world.setDebugDraw(debugDraw);



colorMode(RGB, 1, 1, 1);
box2d.world.drawDebugData();

About

Simple debug draw class for Box 2d in combination with processing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages