Does NavMesh.CalculatePath take NavMeshObstacles into account?

My agents seem to be ignoring the NavMeshObstacles I baked in. I am not using NavMeshAgent, but driving my own agent with NavMesh.CalculatePath. Do I need to teach my agent about NavmeshObstacles?

1 Answer

1

I just stumbled onto this, it looks like you can’t use it on Awake/Start, it needs to be after that, I think that the carving of NavMeshObstacles happens after the Awake/Start methods.

I tried the CalculatePath in start and it didn’t work, then I tried in Update and it did work (or use it on a constant updating method or wait for the navmeshobstacle gets stationary)!