D
D
Dmitry Korolev2018-09-13 22:54:51
Unity
Dmitry Korolev, 2018-09-13 22:54:51

How do you know if the angle between directions is more than 180 degrees?

I have two normal vectors and taking into account from which of them the angle with the opposite (right or left) is of interest.
How can I find out if the angle to the left from the first vector to the second is greater than 180 degrees?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Griboks, 2018-09-13
@adressmoeistranici

Your question is too obscure.
The angle between vectors is always no more than 180 degrees.
The angle between opposite vectors is always 180 degrees.
The value of the angle is usually taken as the minimum modulo.
When measuring angles, there is no left or right side.
The value of the angle is derived from the scalar product of vectors.

D
Daniil Basmanov, 2018-09-14
@BasmanovDaniil

Use Vector2.SignedAngle .

F
FadeToBlack, 2018-09-26
@FadeToBlack

There is atan2 on the plane to define the angles .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question