Enumeration Case


Report the closest hit.


case nearest


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.

See Also

Collision Cast Queries

case all

Report all hits sorted in ascending order by distance from the cast origin.

case any

Report one hit.