Phaser API Documentation

  Version: 
setFrictionY(y)

Description:

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

Parameters:

name type description
y number

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

Returns:
Description:

This Game Object.

Examples:
Since: 3.0.0