what is the "official" way of "killing" a b2World?
is setting the variable that holds the b2World to "null" and all the variables that are used in the box2d world to null enough? of course, this also means stopping the "b2World.Step" function from being called... as well as stopping all other functions that have something to do with the box2D world from being called..
what is a surefire way to make sure that box2D has been killed and is out of memory?
is setting the variable that holds the b2World to "null" and all the variables that are used in the box2d world to null enough? of course, this also means stopping the "b2World.Step" function from being called... as well as stopping all other functions that have something to do with the box2D world from being called..
Code:
// this is just an example...
theWorld = null;
// other variables
bodyOne = null;
bodyTwo = null
bodyThree = null;
bodyFour = null;
bodyFive = null;
jointOne = null;
jointTwo = null
jointThree = null;
jointFour = null;
jointFive = null;
timeStep = null;
ratio = null;
// etc...
theWorld = null;
// other variables
bodyOne = null;
bodyTwo = null
bodyThree = null;
bodyFour = null;
bodyFive = null;
jointOne = null;
jointTwo = null
jointThree = null;
jointFour = null;
jointFive = null;
timeStep = null;
ratio = null;
// etc...
what is a surefire way to make sure that box2D has been killed and is out of memory?