Search Unity

Question Finding a path near player

Discussion in 'Navigation' started by Ary_Ary, Apr 10, 2021.

  1. Ary_Ary

    Ary_Ary

    Joined:
    Apr 16, 2020
    Posts:
    8
    Hi. I'm working on an AI system for my game using navmesh agents. Now the problem is there are some scenarios in which I want the enemy to have visual on player but I don't want it to get close. As you can see in the image, the path I want the enemy to take is the "green" line, but the path that navmesh chooses is the "red" line (which is the closest path naturally). Any suggestions?
    Thanks.


    1.png