What’s the correct way to determine that NavMeshAgent has finished? I’ve tried a variety of approaches and I assumed that I’d have to combine a number of different things, but I can’t find any combination or approach which always works.
NavMeshAgent.remainingDistance - this can sometimes still be quite high, so while this reaching or nearing zero is a sign it’s finished, I need something else for the occasions when it never nears zero.
NavMeshAgent.pathStatus - this becomes PathComplete as soon as I give the agent a new target, despite the fact that it has not even or barely started moving yet, so this is no help.
NavMeshAgent.velocity - same as pathStatus. This is zero as soon as I send the NavMeshAgent going, so checking this for zero isn’t going to tell me anything.
I’ve also looked at speed, hasPath and pathStale, but these don’t seem to provide any useful information either.
Presumably there must be some absolute method to determine when a NavMeshAgent has either reached his destination, given up on trying to reach his destination or just generally got as close as he’s going to get?
This allows to “merge” the values, enabling both 1st bit and the 7th bit.
Of course, this results in a very different number, but we only care about bit-representation