Get a sequence of evenly spaced points from the curve.
You can pass divisions
, stepRate
, or neither.
The number of divisions will be
divisions
, if divisions
> 0; orthis.getLength / stepRate
, if stepRate
> 0; orthis.defaultDivisions
1 + divisions
points will be returned.
name | type | arguments | description |
---|---|---|---|
divisions | number | <optional> |
The number of divisions to make. |
stepRate | number | <optional> |
The curve distance between points, implying |
out | array | Array.<Phaser.Math.Vector2> | <optional> |
An optional array to store the points in. |
An array of Points from the curve.