Box2D-for-Processing icon indicating copy to clipboard operation
Box2D-for-Processing copied to clipboard

debugdraw

Open shiffman opened this issue 12 years ago • 4 comments

probably should implement something for this

shiffman avatar Sep 14 '13 19:09 shiffman

got a implement here: http://forum.processing.org/two/discussion/11669/box2d-debug-draw-class but with nullpointer exception when enable "DebugDraw.e_dynamicTreeBit"

xnastudio avatar Aug 26 '15 01:08 xnastudio

This looks like a great start! Will try to delve deeper soon, but would welcome any help integrating.

shiffman avatar Aug 27 '15 01:08 shiffman

You just need to change code from JBox2D to Processing API.

https://github.com/jbox2d/jbox2d/blob/master/jbox2d-testbed/src/main/java/org/jbox2d/testbed/framework/j2d/DebugDrawJ2D.java

xnastudio avatar Aug 27 '15 02:08 xnastudio

I fixed the nullpointer exception when enable "DebugDraw.e_dynamicTreeBit". The remain unimplement method is a piece of cake.

xnastudio avatar Sep 01 '15 00:09 xnastudio