- Home /
Is there any way to count the times a NavMeshAgent avoids a collision?
I'm trying to know exactly how many times the agents avoided collisions during the execution of my game. If I could also know when this happens, it's better. Thank you.
Answer by potatokiller234 · Jul 22, 2020 at 03:54 PM
To my knowledge, there is nothing integrated that can solve this issue, though you can make a jankey fix by the use of colliders. You can attach a collider that is a bit larger than your nav mesh agent's collider box and onTriggerEnter it counts up how many things went inside of the collider.
Your answer
Follow this Question
Related Questions
How do I get a navmesh agent to stop at the edge of a collider? 0 Answers
OnTriggerEnter not activating with NavMesh movement 2 Answers
NavMesh on collision dectection activate,On collision activate navMesh 0 Answers
How to make whole navmesh agent avoid carves rather then center of it? 0 Answers
Navmeshagent falls through the navmesh plane. Weirdest issue I have ever seen 2 Answers