The Attempt at a Solution
In the boxes
Where did I go wrong with the angle calculation?
https://gyazo.com/efc009de2080feedea420d6b2a5edab4I don't know, you didn't show the Calc.
I calculated the angle as -10°, but since the question asked for the angle counter-clockwise from the x axis, I thought it would be correctly expressed as 350.Can't follow your work. Your original post gives the answer as 350. How v did you come up with this number?
Okay where did you get the -10 degrees from?
You can find the coordinate of the player's position through your vectors. After that you can simply use geometry to determine the ccw angle, after that, 360 - positive angle = clockwise angle. The program may not want to accept negative angles, try the positive equivalent between 0 and 360.
Triangle on the right shows how I calculated -10° angle by using tan-1(-3.2/17.4), -3.2 being the change in y and 17.4 change in x after I added the vectors.
I calculated the final point (17.4, -3.2) and drew a line from the origin (0,0) to this point, creating a triangle with the x and y segments. Using Pythagorean theorem I calculated the magnitude of this vector 17.7I could not understand your drawings. So my suggestion is to redraw a simple picture that summarizes the vectors and shows the -10 degrees.