Phaser API Documentation

  Version: 
setGravityY(y)

Description:

Set the gravitational force to be applied to the Y axis. Value can be positive or negative. Larger values result in a stronger effect.

Parameters:

name type description
y number

The gravitational force to be applied to the Y-axis.

Returns:
Description:

This Game Object.

Examples:
Since: 3.0.0