Phaser API Documentation

  Version: 
reset([x], [y])

Description:

Resets this Body to the given coordinates. Also positions its parent Game Object to the same coordinates.

Parameters:

name type arguments description
x number <optional>

The x coordinate to reset the body to. If not given will use the parent Game Object's coordinate.

y number <optional>

The y coordinate to reset the body to. If not given will use the parent Game Object's coordinate.

Since: 3.0.0