Phaser API Documentation

  Version: 
addPoint(x, y)

Description:

Add a point to the current list of Vector2 points of the curve.

Parameters:

name type description
x number

The x coordinate of this curve

y number

The y coordinate of this curve

Returns:
Description:

The new Vector2 added to the curve

Since: 3.0.0
Source: src/curves/SplineCurve.js (Line 91)