mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
Impact bodies now remove themselves from the world when destroyed.
This commit is contained in:
parent
b81b268b29
commit
b7beea1d37
1 changed files with 2 additions and 0 deletions
|
@ -572,6 +572,8 @@ var Body = new Class({
|
|||
*/
|
||||
destroy: function ()
|
||||
{
|
||||
this.world.remove(this);
|
||||
|
||||
this.enabled = false;
|
||||
|
||||
this.world = null;
|
||||
|
|
Loading…
Reference in a new issue