Phaser API Documentation

  Version: 
setAngularVelocity(value)

Description:

Sets the angular velocity of the body.

In Arcade Physics, bodies cannot rotate. They are always axis-aligned. However, they can have angular motion, which is passed on to the Game Object bound to the body, causing them to visually rotate, even though the body remains axis-aligned.

Parameters:

name type description
value number

The amount of angular velocity.

Returns:
Description:

This Game Object.

Since: 3.0.0