Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

NavAgent tries to take the shortest route

Discussion in 'Navigation' started by Griffo, Mar 4, 2016.

  1. Griffo

    Griffo

    Joined:
    Jul 5, 2011
    Posts:
    700
    Hi, when I generate a random point for my agent to go to he tries to take the shortest route and can't get there because he's to low, as in the picture I draw the route out so why don't he go that way?

    He just goes to his left and stop under it.

    Screen Shot 2016-03-04 at 11.29.08.png

    EDIT Sorry my fault .. Set the Y position of the new point to always be at 0.
     
    Last edited: Mar 4, 2016