Unity AI (NavMesh) Calculate Path but where the path goes to the players forward first
instead of the path that I am getting which forces me to move backwards , I want the NavMesh to generate the path which allows me to move forward.
Check the image above .
x : Destination
car: navagent
blue path: path I want
purple path: path I am getting
red arrow: navagent forward.
How about more intermediate destination points?
Have you also tried putting a (quite large) NavMesh Obstacle behind the vehicle to limit the risk the path will go "backwards"?
The Point of the system is that the car moves to different and have flexible destination, this makes adding an intermediate point a bit confusing and harder.
But, to the adding obstacles object behind it, I have thought of it but I haven't tried it since:
Wasn't sure if I can use dynamic/movable obstacles.[but i assume by your suggestion it works]
The block obstacle might block destination.
Your answer
Follow this Question
Related Questions
Navmesh How to check if full path available? C# 5 Answers
AI that goes from point a to point b,escapes from the player 0 Answers
Navigation through buttons with custom controller logic 0 Answers
Using Unity 5.0 UI Buttons for Navigation in place of Keyboard 0 Answers
Forcing NavMeshAgent to follow Parallel to the player 0 Answers