A JMECanvasImplementator with physics


I'm extending JMECanvasImplementator, so I can use it as a Swing component. I've created a PhysicsSpace inside it, which the elements are added to, but it doesn't seem to work. If I add code to move it, it moves okay, but if I have any code that does anything physics-y (detaching a joint is what I'm doing), you don't see a thing. I think it may be because I have to update the physics somehow? If anyone has any ideas, it would be really appreciated…

Yes, you need to update the physics space. Have a look into SimplePhysicsGame on how to do that and when to do it.