how to convert an angle into a vector code example Example: angle to vector2 var direction = Vector2(cos(angle), sin(angle))