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)
Please login to continue.