Phaser API Documentation

  Version: 
setMaxVelocity(x, [y])

Description:

Sets the Body's maximum velocity.

Parameters:

name type arguments Default description
x number

The horizontal velocity, in pixels per second.

y number <optional> x

The vertical velocity, in pixels per second.

Returns:
Description:

This Body object.

Since: 3.10.0