NavMesh agent missing waypoints and then overshooting / oscilating,NavMesh Missing waypoint / Oscillation
As shown in the video below, my agent has a tendency to miss a waypoint and then turn round to try and pass through the missed waypoint creating a kind of oscillating effect.
I have tried selecting "auto-update path" in the hope that it will re-calculate the path having missed the waypoint, and continue on to the target, however, appeared to do nothing.
I have also tried forcing an update of the agent.SetDestination(destination) every fixed update and every 20th update, and have played around with the time settings, but it still appears to not re-calculate the path and always defaults to the same behaviour.
Is this because it is re-calculating path but not clearing the waypoint as a target when re-calculating. or Is it just not re-calculating the path.
Either way, any suggestions or ideas on how to solve this would be massively appreciated.
Video of waypoint missing / oscillation
https://www.youtube.com/watch?v=_bix6jokSRs&feature=youtu.be