Phaser API Documentation

  Version: 

Member of: Phaser.Actions

<static> RotateAround(items, point, angle)

Description:

Rotates each item around the given point by the given angle.

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.

Returns:
Description:

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

Type:
Since: 3.0.0