Function RichFunnel.ClampToNavmesh
        
                ClampToNavmesh
        
                (Vector3 position)
    
            
            Clamps the position to the navmesh and repairs the path if the agent has moved slightly outside it.