Sets the body's horizontal and vertical acceleration. If the vertical acceleration value is not provided, the vertical acceleration is set to the same value as the horizontal acceleration.
The horizontal acceleration
Optionaly: numberThe vertical acceleration Default x.
Sets the body's horizontal acceleration.
The horizontal acceleration
Sets the body's vertical acceleration.
The vertical acceleration
Provides methods used for setting the acceleration properties of an Arcade Physics Body.