Phaser API Documentation

  Version: 
removeCollider(collider)

Description:

Removes a Collider from the simulation so it is no longer processed.

This method does not destroy the Collider. If you wish to add it back at a later stage you can call World.colliders.add(Collider).

If you no longer need the Collider you can call the Collider.destroy method instead, which will automatically clear all of its references and then remove it from the World. If you call destroy on a Collider you don't need to pass it to this method too.

Parameters:

name type description
collider Phaser.Physics.Arcade.Collider

The Collider to remove from the simulation.

Returns:
Description:

This World object.

Examples:
Since: 3.0.0