Phaser API Documentation

  Version: 
setRotateToPath(value, [offset])

Description:

Set whether the PathFollower should automatically rotate to point in the direction of the Path.

Parameters:

name type arguments description
value boolean

Whether the PathFollower should automatically rotate to point in the direction of the Path.

offset number <optional>

Rotation offset in degrees.

Returns:
Description:

This Game Object.

Since: 3.0.0