Gets the current rotational speed of the body. Equivalent to the magnitude of its angular velocity.undefined
The current angular speed of the body.
Gets the current rotational velocity of the body.undefined
The current angular velocity of the body.
Gets the current linear velocity of the physics body.undefined
The current linear velocity of the body.
Sets the current rotational speed of the body. Direction is maintained. Affects body angular velocity.
The angular speed.
This Game Object instance.
Sets the angular velocity of the body instantly. Position, angle, force etc. are unchanged.
The angular velocity.
This Game Object instance.
Sets both the horizontal and vertical velocity of the physics body.
The horizontal velocity value.
Optionaly: number
The vertical velocity value, it can be either positive or negative. If not given, it will be the same as the x value. Default x.
This Game Object instance.
Sets the horizontal velocity of the physics body.
The horizontal velocity value, in pixels per second.
This Game Object instance.
Sets the vertical velocity of the physics body.
The vertical velocity value, in pixels per second.
This Game Object instance.
Contains methods for changing the velocity of a Matter Body. Should be used as a mixin and not called directly.