Snap a position to the closest point on the navmesh within a search box, or null when no part of the
mesh lies inside it. Unlike getClosestPoint — which does not inspect the query's success flag, so a
position outside its fixed ±1-unit box returns an UNSPECIFIED point (whatever the query left in its
output) rather than signalling a miss — the search extent is explicit here and a failed query is
reported as null, so callers can distinguish "snapped" from "nothing nearby".
Snap a position to the closest point on the navmesh within a search box, or null when no part of the mesh lies inside it. Unlike getClosestPoint — which does not inspect the query's success flag, so a position outside its fixed ±1-unit box returns an UNSPECIFIED point (whatever the query left in its output) rather than signalling a miss — the search extent is explicit here and a failed query is reported as null, so callers can distinguish "snapped" from "nothing nearby".