Impact bodies now remove themselves from the world when destroyed.

This commit is contained in:
Richard Davey 2018-02-14 19:34:21 +00:00
parent b81b268b29
commit b7beea1d37

View file

@ -572,6 +572,8 @@ var Body = new Class({
*/
destroy: function ()
{
this.world.remove(this);
this.enabled = false;
this.world = null;