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

Made NavMeshAgents to avoid certain agent

Discussion in 'Navigation' started by platinio2007, Jul 16, 2018.

  1. platinio2007

    platinio2007

    Joined:
    Jul 17, 2015
    Posts:
    18
    hi guys, first sorry for my bad english

    So about my problem i am making some AI that follow others agents, and avoid each others that works fine, but when the agent A chase the agent B, and agent A gets closets try to avoid agent B, so how can i solve it?

    if i disable the avoidance, then he will no avoid others agents and i dont want that.

    if i disable the avoidance when it gets closets then will have the same undesire effect as before.

    So guys exist a way like in collision to say, agent A dont avoid Agent B, but be sure to avoid others agents