Phaser API Documentation

  Version: 

Member of: Phaser.Actions

<static> PlaceOnCircle(items, circle, [startAngle], [endAngle])

Description:

Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Circle.

If you wish to pass a Phaser.GameObjects.Circle Shape to this function, you should pass its geom property.

Parameters:

name type arguments Default description
items array | Array.<Phaser.GameObjects.GameObject>

An array of Game Objects. The contents of this array are updated by this Action.

circle Phaser.Geom.Circle

The Circle to position the Game Objects on.

startAngle number <optional> 0

Optional angle to start position from, in radians.

endAngle number <optional> 6.28

Optional angle to stop position at, in radians.

Returns:
Description:

The array of Game Objects that was passed to this Action.

Type:
Since: 3.0.0