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.
From the positive x axis.
I got -10 from the X-axis counter-clockwise when drawing a picture, as I've explained. Do you have a better answer or suggestion?I think if you draw yourself a picture you will see that it can't be -10 degrees from the +ve x-axis.
That wouldn't make sense, as the angle from initial to final points would be from the top of the red line on the y-axis to the final spot, not from the origin.
From this image, find the vector P.
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.
Tried it, didn't work. I think the teacher probably just put the answer in wrong accidentally. Will ask tomorrow. Thanks for help.Ok, I follow you now. I think you got it right. Maybe a small rounding error. Try and see if 349.6 works.