Phaser API Documentation

  Version: 
disableBody([disableGameObject], [hideGameObject])

Description:

Stops and disables this Game Object's Body.

Parameters:

name type arguments Default description
disableGameObject boolean <optional> false

Also deactivate this Game Object.

hideGameObject boolean <optional> false

Also hide this Game Object.

Returns:
Description:

This Game Object.

Examples:
Since: 3.0.0