Added World.remove

This commit is contained in:
Richard Davey 2017-12-02 04:04:30 +00:00
parent 23993bb318
commit 4023880efd

View file

@ -194,6 +194,11 @@ var World = new Class({
return body;
},
remove: function (object)
{
this.bodies.delete(object);
},
pause: function ()
{
this.enabled = false;