Search Unity

NavMeshAgent.radius has no impact

Discussion in 'Navigation' started by matteatsmochi, Nov 21, 2018.

  1. matteatsmochi

    matteatsmochi

    Joined:
    Aug 2, 2018
    Posts:
    6
    Its late so I'm probably missing something, but why when I adjust my obstacle avoidance radius does it have no impact on the nav mesh agent? Doesn't matter if its 1 or 8 (shown below) he still clips the wall hes going around. I appreciate any help.

     
  2. matteatsmochi

    matteatsmochi

    Joined:
    Aug 2, 2018
    Posts:
    6
    follow up. yep, I was tired. feels like that radius just impacts other agents, not the nav mesh itself. to get a better path I set the radius for the agent type to a higher size and everything works great.
     

    Attached Files:

    Saeed-Barari and BitGamey like this.
  3. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    This is because the actual navigation mesh determines how close things will get to an edge. To support multiple sizes, multiple navigation meshes would need to be baked.
     
  4. Saeed-Barari

    Saeed-Barari

    Joined:
    Jul 12, 2021
    Posts:
    56
    In more recent versions, the 'Radius' has moved to Obstacle Avoidance section, which helps with understanding its purpose.
    upload_2024-3-7_14-41-19.png