- A* version: 5.4.6
- Unity version: 6.1.2f1
Occaionally a FollowerEntity will not set the reachedDestination bool even though by all accounts it should. I have not been able to figure out way to reproduce it. As you can see from the attached, the raminaing distance is less than the stop distance so as far as I understand it, it should count as having reached the destination.
Is there something I am missing, or a way around it?
Can you check the agent’s internal position?
I see that you have Position Sync set to “Move independently of transform”.
By internal position to you mean the entity or…?
I can try, but it happens super inconsistantly which has made it really hard to troubleshoot.
I mean checking ai.position instead of transform.position. Specifically I’m thinking if the agent’s internal position might be far below or far above the destination.
Okay it took a bit, but I got it to do it again. From the rider debugger:
followerEntity.position: (13.0034742, -100, 41.595993)
followerEntity.destination: (12.9766512, -99.9279938, 41.7187805)
followerEntity.stopDistance: 0.120000005
folowerEntity.remainingDistance: remaining: 0.115001105
From the inspector:
transfrom.position: (13.0034742,-100,41.595993)
followerEntity.remainingDistance: 0.12
So, it all looks okay…
Since this is happening inconsistently, are you able to, temporarily, make it so your agent movement/rotation is in sync instead of setting them independently? Just temporarily and see if the issue comes back up. If it doesn’t we we’d have a stronger starting point.