Search Unity

Question Navmesh agent moved to stop point but still blocked by a wall

Discussion in 'Navigation' started by hvtanh07, Jul 30, 2022.

  1. hvtanh07

    hvtanh07

    Joined:
    Nov 14, 2020
    Posts:
    8
    I have gunner navigate to player, and when reached a certain distance (using stop distance) he start to shoot. But sometime player are behide the wall and gunner already reached far enough distance and start shooting while there's a wall blocking in the way. Is there a way to make agent always finds a position where there's nothing blocking him and the player?