Nudges (translates) the top-left corner of a Rectangle by the coordinates of a point (translation vector).
name | type | description |
---|---|---|
rect | Phaser.Geom.Rectangle |
The Rectangle to adjust. |
point | Phaser.Geom.Point | Phaser.Math.Vector2 |
The point whose coordinates should be used as an offset. |
The adjusted Rectangle.