Sets the maximum velocity of the body.
The new maximum horizontal velocity, in pixels per second.
Optionaly: number
The new maximum vertical velocity, in pixels per second. Default x.
This Game Object.
Sets the velocity of the Body.
The horizontal velocity of the body, in pixels per second. Positive values move the body to the right, while negative values move it to the left.
Optionaly: number
The vertical velocity of the body, in pixels per second. Positive values move the body down, while negative values move it up. Default x.
This Game Object.
Sets the horizontal component of the body's velocity.
Positive values move the body to the right, while negative values move it to the left.
The new horizontal velocity, in pixels per second.
This Game Object.
Sets the vertical component of the body's velocity.
Positive values move the body down, while negative values move it up.
The new vertical velocity, in pixels per second.
This Game Object.
Provides methods for modifying the velocity of an Arcade Physics body.
Should be applied as a mixin and not used directly.