Imagine the blue part of this picture is streets and navmesh.
the red object is a car with navmeshAgent.
the green circles are the colliders set as triggered and they are the destination of the car.
when the game starts the car will choose one of them and go to that , after reach that it will choose another one randomly so it means the car will go through all of this forever.
now the problem is sometimes when car reach's one them and choose another since it will choose the closer path to next destination sometimes it will have to turn back which its not realistic and doesn't make sense.
as you can see in this example when reach that point since the middle one is closer from where the car is triggered it will turn back and the red arrow is wrong path , instead it should go through the green arrow and that's the correct path.
how can i do something to not to turn back instead find another way?