Function RichAI.ClampToNavmesh

ClampToNavmesh (Vector3 position, out bool positionChanged)

Constrains the character's position to lie on the navmesh.

Protected
Vector3 ClampToNavmesh (

Vector3

position

Current position of the character.

out bool

positionChanged

True if the character's position was modified by this method.

)

Constrains the character's position to lie on the navmesh.

Not all movement scripts have support for this.

Return

New position of the character that has been clamped to the navmesh.