Y
Y
yraiv2022-03-03 15:58:52
Unity
yraiv, 2022-03-03 15:58:52

How to determine which object from the array is closer?

There is an array of points, opponents go through them. How to determine which of the opponents is closer to the last point?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-03-03
@freeExec

* Calculate the distance to each enemy
* Choose the minimum

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question