Phaser API Documentation

  Version: 
smooth([iterations])

Description:

Smooths the polygon over the number of iterations specified. The base polygon data will be updated and replaced with the smoothed values. This call can be chained.

Parameters:

name type arguments Default description
iterations number <optional> 1

The number of times to apply the polygon smoothing.

Returns:
Description:

This Game Object instance.

Since: 3.13.0