Nudges (translates) the top left corner of a Rectangle by a given offset.
name | type | description |
---|---|---|
rect | Phaser.Geom.Rectangle |
The Rectangle to adjust. |
x | number |
The distance to move the Rectangle horizontally. |
y | number |
The distance to move the Rectangle vertically. |
The adjusted Rectangle.