Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

quadraticBezierTo(x, [y], [controlX], [controlY])

Description:

Creates a Quadratic Bezier Curve starting at the ending point of the Path.

Parameters:

name type arguments description
x number | Array.<Phaser.Math.Vector2>

The X coordinate of the second control point or, if it's a Vector2, the first control point.

y number <optional>

The Y coordinate of the second control point or, if x is a Vector2, the second control point.

controlX number <optional>

If x is not a Vector2, the X coordinate of the first control point.

controlY number <optional>

If x is not a Vector2, the Y coordinate of the first control point.

Returns:
Description:

This Path object.

Since: 3.2.0
Source: src/curves/path/Path.js (Line 236)