Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DebugDraw class in JBox2D
#11
Code:
public interface Draw {
}
Now what?
(07-14-2012, 01:32 AM)Qwertygiy Wrote: Random idea, try swapping these two lines:

debugDraw.setFlags(debugDraw.e_shapeBit);
world.setDebugDraw(debugDraw);

I tried that, same problem.
*sees the DebugDraw running st00f is in the game loop*
*feels stupid*
Reply
#12
No no, the interface would be DebugDraw if that line of what I'm thinking is correct, which again I'm not sure of at all. So it would be more like

Code:
public class Draw implements DebugDraw
{
}

And then include all the methods of DebugDraw.
Reply
#13
(07-14-2012, 01:36 AM)Qwertygiy Wrote: No no, the interface would be DebugDraw if that line of what I'm thinking is correct, which again I'm not sure of at all. So it would be more like

Code:
public class Draw implements DebugDraw
{
}

And then include all the methods of DebugDraw.

"interface expected here"
The Java language is terrible with this stuff.
Reply
#14
Probably means you can only implement interfaces and DebugDraw is not an interface and so as I suspected that line of thinking wouldn't work.
Reply
#15
I changed it to extends and now it works.
Now I have a bunch of methods that throw UnsupportedOperationExceptions. Yay!
Random idea: Get the source code version and use it instead.
Didn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)