Skip to content

Commit dd3db88

Browse files
committed
preDestroy now handled in GameObject.destroy
1 parent 44bb628 commit dd3db88

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

v3/src/physics/matter-js/MatterImage.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ var MatterImage = new Class({
5959
}
6060

6161
this.setPosition(x, y);
62-
},
63-
64-
preDestroy: function ()
65-
{
66-
this.world.remove(this.body, true);
6762
}
6863

6964
});

v3/src/physics/matter-js/MatterSprite.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ var MatterSprite = new Class({
6262
}
6363

6464
this.setPosition(x, y);
65-
},
66-
67-
preDestroy: function ()
68-
{
69-
this.world.remove(this.body, true);
7065
}
7166

7267
});

0 commit comments

Comments
 (0)