Physics.Arcade.Body#destroy()

destroy()

Destroys this Body.

First it calls Group.removeFromHash if the Game Object this Body belongs to is part of a Group.
Then it nulls the Game Objects body reference, and nulls this Body.sprite reference.

Source code: physics/arcade/Body.js (Line 1305)
doc_phaser
2017-02-14 10:59:22
Comments
Leave a Comment

Please login to continue.