qc.arcade.RigidBody.velocityFromRotation

Prototype

  • booean velocityFromRotation(Rotation, speed, point)

Parameters

Parameter Type Description
Rotation number The angle in radians.
speed number The speed it will move, in pixels per second.
point qc.Point A Point where point.x contains the velocity x value and point.y contains the velocity y value.

Return

The velocity as a Point object.

Description

et the velocity as a Point object through the rotation (in radians) and speed.