Returns a random point within a Rectangle.
name | type | description |
---|---|---|
rect | Phaser.Geom.Rectangle |
The Rectangle to return a point from. |
out | Phaser.Geom.Point |
The object to update with the point's coordinates. |
The modified out
object, or a new Point if none was provided.