Phaser API Documentation

  Version: 
setAngle([degrees])

Description:

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

Parameters:

name type arguments description
degrees number <optional>

The angle to set, in degrees.

Returns:
Description:

This Game Object.

Examples: