Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Curve

getDistancePoints(distance)

Description:

Returns an array of points, spaced out X distance pixels apart. The smaller the distance, the larger the array will be.

Parameters:

name type description
distance number

The distance, in pixels, between each point along the curve.

Returns:
Description:

An Array of Point objects.

Type:
Examples:
Since: 3.0.0
Source: src/curves/Curve.js (Line 169)