Search Unity

Question How can I make an AI not go through an object that was not originally there?

Discussion in 'Navigation' started by MrBanana4627, Jun 5, 2023.

  1. MrBanana4627

    MrBanana4627

    Joined:
    May 26, 2022
    Posts:
    2
    So to explain it better, I have an object that is a door with an animation, I baked the navmesh with the doors open otherwise the AI can't go past the doors even if it's open. How can I make it, so the AI can go through the doors when it's open but can't when it's closed.
     
  2. zedz

    zedz

    Joined:
    Aug 31, 2013
    Posts:
    253
    attach a navmeshobstacle to the door
     
    androvisuals_unity likes this.