I need to create different levels. How do I completely remove AWPDynamicsWorld? I do so:
//create
AWPWorld = new AWPDynamicsWorld();
AWPWorld.initWithDbvtBroadphase();
AWPWorld.gravity = new Vector3D(0, 0, -10);
.
.
.
.
//deallocate
AWPWorld.cleanWorld(true);
AWPWorld.dispose();
AWPWorld = null;
But when I create new levels by 3-4 times, the memory starts to increase. What am I doing wrong?