phaser - v4.0.0-rc.4
    Preparing search index...

    Function RotateTo

    • Position a point at the given angle and distance to (x, y).

      Type Parameters

      Parameters

      • point: T

        The point to be positioned.

      • x: number

        The horizontal coordinate to position from.

      • y: number

        The vertical coordinate to position from.

      • angle: number

        The angle of rotation in radians.

      • distance: number

        The distance from (x, y) to place the point at.

      Returns T