Phaser API Documentation

  Version: 
setAllowRotation([value])

Description:

Enables or disables rotation.

Parameters:

name type arguments Default description
value boolean <optional> true

true to allow rotation on this body, or false to disable it.

Returns:
Description:

This Body object.

Since: 3.9.0