Sets both the horizontal and vertical velocity of the physics body.
name | type | arguments | Default | description |
---|---|---|---|---|
x | number |
The horizontal velocity value. |
||
y | number | <optional> | x |
The vertical velocity value, it can be either positive or negative. If not given, it will be the same as the |
This Game Object instance.