Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

getSpacedPoints([divisions])

Description:

Divides this Path into a set of equally spaced points,

The resulting points are equally spaced with respect to the points' position on the path, but not necessarily equally spaced spatially.

Parameters:

name type arguments Default description
divisions number <optional> 40

The amount of points to divide this Path into.

Returns:
Description:

A list of the points this path was subdivided into.

Type:
Since: 3.0.0
Source: src/curves/path/Path.js (Line 646)