Phaser API Documentation

  Version: 
remove(body)

Description:

Removes an existing Arcade Physics Body or StaticBody from the simulation.

The body is disabled and removed from the local search trees.

The body itself is not deleted, it just has its enabled property set to false, which means you can re-enable it again at any point by passing it to enable enable or add.

Parameters:

name type description
body Phaser.Physics.Arcade.Body | Phaser.Physics.Arcade.StaticBody

The body to be removed from the simulation.

Examples:
Since: 3.0.0