Hi guys, I am having trouble finding "delete world" function in box2d. Here is from box2d.org docs:
b2World* myWorld = new b2World(gravity, doSleep);
... do stuff ...
delete myWorld;
What should be Gideros version of the last line? Any help?
I might need more coffee this morning, i guess :-/
Comments
But all in all nil in lua is similar to delete
I believe nil should do the trick.
Additionally you can unload the box2d library if you won't be using it anymore using the unload.
But we can wait for @atilim or @OZApps to confirm it
Likes: plamen
Here is a simple example:
Likes: plamen