Phaser API Documentation

  Version: 
setVelocityX(x)

Description:

Sets the horizontal velocity of the physics body.

Parameters:

name type description
x number

The horizontal velocity value.

Returns:
Description:

This Game Object.

Examples:
Since: 3.0.0