Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Can an agent be an obstacle?

Discussion in 'Navigation' started by Nevermore-Games, Mar 8, 2016.

  1. Nevermore-Games

    Nevermore-Games

    Joined:
    Apr 29, 2013
    Posts:
    4
    Pretty much what it says on the tin. I know a moving object is an agent, and I know an obstacle impedes other agents. Can an agent also be an obstacle to prevent agent collision? Thanks ahead of time!
     
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,007
    You can turn on collision avoidance and if an agent priority < another, he will be an obstacle, doesn't carve the navmesh so no repathing though.