Search Unity

Make navmesh ignore obstable that's on the same gameobject?

Discussion in 'Navigation' started by dhirarun1, Jun 23, 2018.

  1. dhirarun1

    dhirarun1

    Joined:
    Jun 2, 2018
    Posts:
    2
    I have a prefab with a navmesh on it. There will be multiple of these prefabs in the scene, so I would like them to avoid eachother. What's the best way to do this?

    I've come up with adding a obstacle component to the prefab, but this causes a weird behaviour. I figured out that I need to ignore x's obstacle if it's on x's gameobject. How can I do this?
     
  2. adriant

    adriant

    Unity Technologies

    Joined:
    Nov 1, 2016
    Posts:
    69