Phaser API Documentation

  Version: 
maxSpeed: number

Description:

The maximum speed this Body is allowed to reach, in pixels per second.

If not negative it limits the scalar value of speed.

Any negative value means no maximum is being applied (the default).

Type:
number
Default: -1
Since: 3.16.0