Phaser API Documentation

  Version: 
reset(x, y)

Description:

Sets this Body's parent Game Object to the given coordinates and resets this Body at the new coordinates. If the Body had any velocity or acceleration it is lost as a result of calling this.

Parameters:

name type description
x number

The horizontal position to place the Game Object.

y number

The vertical position to place the Game Object.

Since: 3.0.0