Search Unity

Navmesh Agent pass through

Discussion in 'Scripting' started by pneill, Sep 10, 2013.

  1. pneill

    pneill

    Joined:
    Jan 21, 2007
    Posts:
    207
    Does anyone know of any good tricks to allow navmesh agents to pass through each other?

    I'm dealing with a giant vs tiny human situation. I have a very large navmesh agent who should be able to "walk over" smaller navemesh agents. Both the giant and humans need to be able to avoid obstacles, so turning off obstacle avoidance isn't really an option. Changing the avoidance priority doesn't help as the large navmesh agent still bumps and pushes the smaller one.

    Any other thoughts, trick, tips, or work arounds on how to handle this situation?

    Thanks,
    Pat
     
    Roger-W likes this.
  2. benhumphreys

    benhumphreys

    Joined:
    Jan 20, 2013
    Posts:
    30
    I am also looking for this. Did you find out how to do it? Does anyone know?


    Edit: It seems to work if you disable collision avoidance on both agents, but it's not really an ideal solution.
     
    Last edited: Oct 17, 2013