Sets the maximum velocity of the body.
name | type | arguments | Default | description |
---|---|---|---|---|
x | number |
The new maximum horizontal velocity. |
||
y | number | <optional> | x |
The new maximum vertical velocity. |
This Game Object.