I'm new to JBox and have questions about drawing.
I've fooled around with the testbed and decided to create my own world but I'm not too sure on how to go about drawing it.
I have concluded that I'm supposed to create another class that implements debugDraw, fill in the missing methods and use a method called drawDebugData, but how exactly do I do that?
Could I just double buffer, paint the world on a canvas and repaint the bodies within the world as they move?
If anyone could point me to an example of such a class (besides the testbed) it would be much appreciated.
I've fooled around with the testbed and decided to create my own world but I'm not too sure on how to go about drawing it.
I have concluded that I'm supposed to create another class that implements debugDraw, fill in the missing methods and use a method called drawDebugData, but how exactly do I do that?
Could I just double buffer, paint the world on a canvas and repaint the bodies within the world as they move?
If anyone could point me to an example of such a class (besides the testbed) it would be much appreciated.