Search Unity

Nav Mesh Agents Pass-Through

Discussion in 'Navigation' started by Ooonej, Aug 16, 2016.

  1. Ooonej

    Ooonej

    Joined:
    Mar 15, 2016
    Posts:
    12
    hi Guys,

    I'm trying to get my players to walk through each other. I have hologram models that should pass-through each other (as they are in fact holograms IRL). But unfortunately, disabling the quality settings works to achieve this, it also allows them to pass through doors and walls which I'm trying to prevent.

    Thanks in advance
     
  2. MathiasDG

    MathiasDG

    Joined:
    Jul 1, 2014
    Posts:
    114
    Have you tried changing their agent radius to 0?
    Not sure it will work, but it could.
     
    Ooonej likes this.
  3. Ooonej

    Ooonej

    Joined:
    Mar 15, 2016
    Posts:
    12
    can't set it to 0, but 1e-05, so .000001 which works well enough i guess :D
     
  4. MathiasDG

    MathiasDG

    Joined:
    Jul 1, 2014
    Posts:
    114
    Another option is to set Obstacle Avoidance to None, and still have pathfinding working for them.
    If you do this, all your walls and doors should be carved or else they will ignore them i think.