Phaser API Documentation

  Version: 
add(body)

Description:

Adds an existing Arcade Physics Body or StaticBody to the simulation.

The body is enabled and added to the local search trees.

Parameters:

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

The Body to be added to the simulation.

Returns:
Description:

The Body that was added to the simulation.

Since: 3.10.0