Phaser API Documentation

  Version: 
setSleepThreshold([value])

Description:

Sets the number of updates in which this body must have near-zero velocity before it is set as sleeping (if sleeping is enabled by the engine).

Parameters:

name type arguments Default description
value number <optional> 60

A Number that defines the number of updates in which this body must have near-zero velocity before it is set as sleeping.

Returns:
Description:

This Game Object.

Since: 3.0.0