Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

circleTo(radius, [clockwise], [rotation])

Description:

Creates a circular Ellipse Curve positioned at the end of the Path.

Parameters:

name type arguments Default description
radius number

The radius of the circle.

clockwise boolean <optional> false

true to create a clockwise circle as opposed to a counter-clockwise circle.

rotation number <optional> 0

The rotation of the circle in degrees.

Returns:
Description:

This Path object.

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