qc.arcade.RigidBody.velocityFromAngle

Prototype

  • booean velocityFromAngle(angle, speed, point)

Parameters

Parameter Type Description
angle number The angle in degrees calculated in clockwise positive direction.
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

Get the velocity as a Point object through the angle (in degrees) and speed.