Phaser API Documentation

  Version: 
setOffset(x, y)

Description:

Positions the Static Body at an offset from its Game Object.

Parameters:

name type description
x number

The horizontal offset of the Static Body from the Game Object's x.

y number

The vertical offset of the Static Body from the Game Object's y.

Returns:
Description:

This Static Body object.

Since: 3.4.0