I am trying to make an arrow rotate around my player, which I also did in another project some months ago (lost it now). But for some reason, it doesn't matter what method I try to use to convert the angle to a Vector2 (I tried the cos() sin() as you can see in the code, but I also tried .rotated()), it won't work. What I have noticed this time, by printing out the Vector, is that for some reason every few degrees (like every 2-3 degrees) it changes from negative to positive, etc.
When I tried doing it with the .rotated() method, I had a similar problem. I tried direction.RIGHT.rotated(angle), and it worked quarter of the time, but the other few times it didn't and I had to change it to LEFT, DOWN or UP and it also worked only once, but I think that it may have something to do with the fact that for some reason the converted angle changes from positive number to negative number?
Also, I printed the rotation_degrees earlier and they were alright