I have a NavMesh and NavMeshAgent. If I set a destination that has sections where there is not nav mesh my agent still seems to go across the empty areas some. It does basically stay on the nav mesh and therefore is basically working, but it seems to “cut corners” and if I have it stopping right next to a nav mesh border it will always go over the edge of the nav mesh.
I have tried different stopping distances and such and nothing seems to help. How do I make sure my agent never leaves the mesh at all? I have some pretty tied tollerences in my geometry and it looks weird when the agent gets off the mesh.