- Home /
Can I set a certain range in A * Pathfinding?
I am new to Unity . I made a Enemy Pathfinding AI with A * Pathfinding but I want it to only work within a certain range. If the target is in that range only then the Pathfinding would work and if not then it will just stop. Help? Thanks!
Do you use Unitys nav mesh agent or another implementation of A*? If you use another implementation, please post the code of it
Answer by PronKill · Jul 07, 2021 at 02:06 PM
Use Physics.CheckSphere
https://docs.unity3d.com/ScriptReference/Physics.CheckSphere.html
Your answer
Follow this Question
Related Questions
A* Pathfinding AIFollow in JavaScript? 0 Answers
[Arongranberg A * Pathfinding Project] How to move units without overlaping of them? 1 Answer
Attacking units surround attacked building properly? (New solution, or fix to Nav Mesh?) 0 Answers
Does A* Pathfinding work on all 3 Axis's. 1 Answer
ai pathfinding project getting started scene problems 1 Answer