F
F
Farawa2022-03-28 17:56:04
Unity
Farawa, 2022-03-28 17:56:04

How to find direction vector by angle?

6241cc51af759566266347.png
I have a conditional boss, a crowd of units approaches him, I need to place them in a semi-circle, how can I find the direction of their position relative to the boss? or mb there are other options how to arrange them like that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeExec, 2022-03-28
@freeExec

Head-on solution - 7th class of geometry.
We have a right-angled triangle, we have an angle (for example, we want to place them every 10 degrees), there is a hypotenuse (it's also the radius on which we want to place enemies).
You need to find the legs, knowing the angle and hypotenuse (they suggest that these are sine and cosine).
6241ce1b5355a542069084.png

A
Alex Maximovich, 2022-03-29
@flexer1992

Equation of a circle as an option

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question