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.

Since: 3.0.0