Phaser API Documentation

  Version: 
setFrictionX(x)

Description:

Sets the horizontal friction of this game object's physics body. This can move a riding body horizontally when it collides with this one on the vertical axis.

Parameters:

name type description
x number

The amount of friction to apply, [0, 1].

Returns:
Description:

This Game Object.

Since: 3.0.0