Physics.P2#removeBody()

removeBody(body) → {Phaser.Physics.P2.Body}

Removes a body from the world. This will silently fail if the body wasn't part of the world to begin with.

Parameters
Name Type Description
body Phaser.Physics.P2.Body

The Body to remove from the World.

Returns

The Body that was removed.

Source code: physics/p2/World.js (Line 911)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.