Sets the angular velocity of the body instantly. Position, angle, force etc. are unchanged.
name | type | description |
---|---|---|
value | number |
The angular velocity. |
This Game Object.
Sets the horizontal velocity of the physics body.
name | type | description |
---|---|---|
x | number |
The horizontal velocity value. |
This Game Object.
Sets vertical velocity of the physics body.
name | type | description |
---|---|---|
y | number |
The vertical velocity value. |
This Game Object.
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.