0
\$\begingroup\$

I am facing a strange issue where the navmesh agent is unable to cross a doorway. It used to work earlier but now suddenly it does not anymore. I am unable to find any possible colliders or objects that might be blocking the way. I even tried to disable all the trigger collider in the door way but I am still facing the same issue.

Navmesh

A clear path through the doorway. I have disabled the door.

Agent settings

Agent going to destination The navagent used to walk through the doorway to the green dot, but is now stuck at the same position shown in image. I cant even get him to cross the doorway by dragging him in the scene view. It seems like there is no navmesh here, but the first image shows navmesh surface between the doorway.

I have tried resizing the agent disabling all the colliders etc but could not solve the issue.

Any help would be really appreciated. Thanks!

Edit:

I enabled all the debug settings for the navmesh and it also shows pink walls as seen below

enter image description here

enter image description here

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

Well, I had two navmesh surfaces in the scene. I deleted the old one. Then I changed the agent settings to lower radius, height and rebaked the navmesh surface. This solved the issue.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.