Phaser API Documentation

  Version: 
rotateAroundDistance(point, angle, distance)

Description:

Rotates each group member around the given point by the given angle and distance.

Parameters:

name type description
point Phaser.Types.Math.Vector2Like

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:

This Group object.

Since: 3.21.0