- Home /
Question by
Nemneb · Oct 22, 2017 at 07:25 PM ·
movementainavmeshnavmeshagent
What’s the simplest way to find nearest navmesh targets?
Hello, I’m trying to create an rts, where units will attack the nearest enemies within a radius. What is the best way to do this?
I tried looking it up, but they all seem too complicated and difficult to understand, or use vector3.distance.
The problem with the latter, is that I plan on adding obstacles and platforms, so I would need a more accurate measurement than raw distance.
I’m using navmesh agents, what’s the best way to find the fastest travel distance?
Comment