Phaser API Documentation

  Version: 

Member of: Phaser.Actions

<static> RotateAroundDistance(items, point, angle, distance)

Description:

Rotates an array of Game Objects around a point by the given angle and distance.

Parameters:

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

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

point object

Any object with public x and y properties.

angle number

The angle to rotate by, in radians.

distance number

The distance from the point of rotation in pixels.

Returns:
Description:

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

Type:
Examples:
Since: 3.0.0