Returns an array of points from the perimeter of the Rectangle, each spaced out based on the quantity or step required.
name | type | arguments | description |
---|---|---|---|
quantity | number |
The number of points to return. Set to |
|
stepRate | number | <optional> |
If |
output | array | Array.<Phaser.Geom.Point> | <optional> |
An array to which to append the points. |
The modified output
array, or a new array if none was provided.