Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

add(curve)

Description:

Appends a Curve to the end of the Path.

The Curve does not have to start where the Path ends or, for an empty Path, at its defined starting point.

Parameters:

name type description
curve Phaser.Curves.Curve

The Curve to append.

Returns:
Description:

This Path object.

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