Search Unity

How to tighten Navmesh Agent

Discussion in 'Navigation' started by amp0303, Aug 8, 2019.

  1. amp0303

    amp0303

    Joined:
    May 24, 2019
    Posts:
    3
    In my project, I set up the navmesh, and my enemies are the agents that walks around until they detect the player and start chasing the player down. If the player makes a quick turn while being chased, all my agents take these huge turns and the player is able to get away rather easily. Is there something I can tune so that they don't get juked so easily?

    The code is just agent.destination = player.position
     
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    Increase the agent's angular speed, making them turn faster, should do the trick.