P
P
PRIYD2020-05-03 12:22:06
Mathematics
PRIYD, 2020-05-03 12:22:06

How to get the angle of rotation to a point?

Hello, I need to get the angle of rotation to a point (what degree you need to turn to look directly at it) in the range [0, 360] (counting clockwise).

You need to get:
1) A point that lies opposite the player (on the edge of the platform).
2) => Angle of rotation to the nth point.

5eae8d88bb4c7058914931.png
And please explain your answer with code if possible.
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2020-05-03
@res2001

https://zaochnik.com/spravochnik/matematika/vektor...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question