Dynamic obstacles in Nav Mesh?

How would one implement objects that block off access to the Nav Mesh? I am trying to create a door that opens and closes, that when closed will prevent the player from entering a building when clicking inside.

Even though I have a collider on the door, the player still clips through it to get inside the building. Any advice for how I can get this collision to work?

Here is the inspector view of the door object:


Nav mesh with door open and closed:


Player clipping through door:

Add a NavMesh Obstacle component to the door and set its properties to fit your door.

Thank you Yee!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms