Phaser API Documentation

  Version: 
enableBody(reset, x, y, enableGameObject, showGameObject)

Description:

Enables this Game Object's Body.

Parameters:

name type description
reset boolean

Also reset the Body and place it at (x, y).

x number

The horizontal position to place the Game Object and Body.

y number

The horizontal position to place the Game Object and Body.

enableGameObject boolean

Also activate this Game Object.

showGameObject boolean

Also show this Game Object.

Returns:
Description:

This Game Object.

Examples:
Since: 3.0.0