Phaser API Documentation

  Version: 
setAngle([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 cameras angle of rotation, given in degrees.

Returns:
Description:

This Camera instance.

Since: 3.0.0