Phaser API Documentation

  Version: 
setVelocityX(value)

Description:

Sets the Body's horizontal velocity.

Parameters:

name type description
value number

The velocity, in pixels per second.

Returns:
Description:

This Body object.

Since: 3.0.0