Physics destroy and a scene

Hi guys.

I have some small questions:

  1. How I should destroy physics? Just detach BulletAppstate and that’s all?
  2. Should I create BulletAppstate per level or the BulletAppstate should be only one for all levels? Just want to understand if i should create BulletAppstate when i load a new level?

Thanks.

Well with 2 I can help, both should work.

For 1 I don’t know the technicall stuff, but I automatically detach all physic stuff, and since I have an empty then, i can just reuse it

@Empire Phoenix said: Well with 2 I can help, both should work.

For 1 I don’t know the technicall stuff, but I automatically detach all physic stuff, and since I have an empty then, i can just reuse it

Thanks. I have just found that destroy() method does not clear all physcs stuff of PhyscsSpace. i reported here http://hub.jmonkeyengine.org/forum/topic/clear-physicsspace-patch/

So, i wouldn’t reuse BulletAppState for a while. Just create new one. Or use the same BulletAppstate.