Phaser API Documentation

  Version: 
setVelocityY(y)

Description:

Sets the vertical component of the body's velocity.

Positive values move the body down, while negative values move it up.

Parameters:

name type description
y number

The new vertical velocity of the body.

Returns:
Description:

This Game Object.

Since: 3.0.0