mifth
March 21, 2014, 8:22pm
1
Hi guys.
I have some small questions:
How I should destroy physics? Just detach BulletAppstate and that’s all?
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
mifth
March 21, 2014, 9:16pm
3
@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.