Phaser API Documentation

  Version: 
setMaxVelocityX(value)

Description:

Sets the Body's maximum horizontal velocity.

Parameters:

name type description
value number

The maximum horizontal velocity, in pixels per second.

Returns:
Description:

This Body object.

Since: 3.50.0