Phaser API Documentation

  Version: 
setMaxVelocity(x, [y])

Description:

Sets the maximum velocity of the body.

Parameters:

name type arguments Default description
x number

The new maximum horizontal velocity.

y number <optional> x

The new maximum vertical velocity.

Returns:
Description:

This Game Object.

Since: 3.0.0