angle to vector2
var direction = Vector2(cos(angle), sin(angle))
angle to vector2
var direction = Vector2(cos(angle), sin(angle))
vector from angle
# to get a vector from an angle, implement something like the code below:
vector = Vector2(cos(theta), sin(theta))
# if this doesn't give accurate results, check whether you are using the right
# angle units for the function (degs or rads) and if it is flipped around the
# mirror line y=x swap the cos ans sin functions.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us