CollisionCastQueryType.nearest
Report the closest hit.
Declaration
case nearestDiscussion
If you only want to test if a hit occurs and don’t care about which hit out of multiple possible hits is returned, use CollisionCastQueryType.any instead because it typically executes faster.