Phaser API Documentation

  Version: 
setRotation([value])

Description:

Set the rotation of this Camera. This causes everything it renders to appear rotated.

Rotating a camera does not rotate the viewport itself, it is applied during rendering.

Parameters:

name type arguments description
value number <optional>

The rotation of the Camera, in radians.

Returns:
Description:

This Camera instance.

Since: 3.0.0