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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.