Skip to content

Commit b7beea1

Browse files
committed
Impact bodies now remove themselves from the world when destroyed.
1 parent b81b268 commit b7beea1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/physics/impact/Body.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ var Body = new Class({
572572
*/
573573
destroy: function ()
574574
{
575+
this.world.remove(this);
576+
575577
this.enabled = false;
576578

577579
this.world = null;

0 commit comments

Comments
 (0)