Function RichFunnel.ClampToNavmesh

ClampToNavmesh (Vector3 position)

Clamps the position to the navmesh and repairs the path if the agent has moved slightly outside it.

Public
Vector3 ClampToNavmesh (

Vector3

position

)

Clamps the position to the navmesh and repairs the path if the agent has moved slightly outside it.

You should not call this method with anything other than the agent's position.