Phaser API Documentation

  Version: 
setFrictionStatic(value)

Description:

Sets a new static friction for this Game Object's Matter Body. A value of 0 means the Body will never "stick" when it is nearly stationary. The higher the value (e.g. 10), the more force it will take to initially get the Body moving when it is nearly stationary.

Parameters:

name type description
value number

The new static friction for the Body.

Returns:
Description:

This Game Object.

Since: 3.0.0