Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

nav mesh agents

Discussion in 'Navigation' started by jjejj87, Jan 30, 2018.

  1. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,115
    Is there a way to make navmesh agents not collide with each other? I want agents to go through each other at times to resolve pathfinding (multiple agents trying to get to one point but fighting each other) or a flying agent (high base offset value) so that a flying agent can be on top of another agent on the ground.

    I tried to reduce agent radius, but it is clamped at 0.05.

    Can anyone help?
     
  2. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    331
    The Obstacle Avoidance Type field is one option. You can use it to disable the agent avoidance completely. And I would suggest against using NavMesh for flying units if possible. Depends on your game.
     
  3. JBR-games

    JBR-games

    Joined:
    Sep 26, 2012
    Posts:
    708
    Another possible option for flying objects would be to add a mesh where things might fly and then bake the navigation there then remove the mesh