Function RichFunnel.ClampToNavmeshInternal

ClampToNavmeshInternal (ref Vector3 position)

Searches for the node the agent is inside.

Private
bool ClampToNavmeshInternal (

ref Vector3

position

)

Searches for the node the agent is inside.

This will also clamp the position to the navmesh and repair the funnel cooridor if the agent moves slightly outside it.

Return

True if nodes along the path have been destroyed so that a path recalculation is required