remaining distance strange bug
I try to get my distance to travel after mouseclick. I do it in FixedUpdate(), the path is calculated in Update. It gives me desired remaining distance olny if nothing is blocking my hero. I meen where destination is outside the corner I will get infinity distance(so the remainin distance is unknown but the hero is moving so the path is calculated), howewer after passing that corner calculations are made correct and remaining distance is returned.
Your answer
![](https://koobas.hobune.stream/wayback/20220612114433im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to get a list of the closest distance targets with NavMesh. 0 Answers
Navmesh agent remaining distance wrong when movement done by root motion of Mecanim? 1 Answer
Moving to a destination and looking into another direction using NavhMeshAgent 1 Answer
NavMesh agent pushed by bullet 0 Answers
Navmesh agent enemy moving to players last seen position 0 Answers