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. |
This Game Object.