Phaser API Documentation

  Version: 
setRotation([radians])

Description:

Immediately sets the angle of the Body. Angular velocity, position, force etc. are unchanged.

Parameters:

name type arguments description
radians number <optional>

The angle of the body, in radians.

Returns:
Description:

This Game Object.