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

Agents avoiding each other ?

Discussion in 'Navigation' started by Quast, Aug 29, 2017.

  1. Quast

    Quast

    Joined:
    Jul 5, 2015
    Posts:
    560
    Hi
    My agents keep hitting each other when they moving around me. They are not avoiding each other ! How to make agent draw new path if other agent or object stand on his way ?
    using "avoidancePriority" or "obstacleAvoidanceType" will help me ?
     
  2. sylon

    sylon

    Joined:
    Mar 5, 2017
    Posts:
    246
    Did you add a Nav Mesh Obstacle component to your agents?
     
  3. Quast

    Quast

    Joined:
    Jul 5, 2015
    Posts:
    560
    I did that but i didn't get good result. Still they hitting each other !! I need something better than this .
     
  4. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    Actually avoiding works fine if done right. Adding a NavMeshObstacle is not a good idea and does not work at all. Could you link a gif and some code? I might be able to help if you provide more information.