dtNavMeshQuery::findDistanceToWall

Finds the distance from the specified position to the nearest polygon wall.