method
Vector.from_angle
Vector.from_angle(a) -> Vector
Returns the unit vector (cos a, sin a) pointing at a radians. Scale it by a speed to launch a projectile in a chosen direction.
Example
program Demo {
handler Step phase Update {
let shot = Vector.scale(Vector.from_angle(aim), 200.0)
}
}