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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Objects should not colide with each other - but they do

Discussion in 'Editor & General Support' started by MacStanley, Jun 18, 2016.

  1. MacStanley

    MacStanley

    Joined:
    Jul 18, 2013
    Posts:
    118
    Hello,

    I have a bunch of objects that should not collide with each other. I've set the layer for all the objects to "Enemy" and set this layer to ignore collisions with itself in the physics settings. It seems like they can get a little bit closer to each other now, but somehow they still collide. I think this is because of the NavMeshAgent they all have attached, but how can I set the NavMeshAgent to not collide with other NavMeshAgents?

    Hope someone has an idea.
     
  2. Grhyll

    Grhyll

    Joined:
    Oct 15, 2012
    Posts:
    119
    Have to tried setting their obstacle avoidance quality to None? (Not sure at all it will change anything)
     
  3. MacStanley

    MacStanley

    Joined:
    Jul 18, 2013
    Posts:
    118
    Actually that made it work :) thank you very much!