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.
name | type | description |
---|---|---|
x | number |
The new horizontal velocity, in pixels per second. |
This Game Object.