Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsQuery.WorldCastMode

Controls what results are returned from a cast query against the PhysicsWorld.
Read time 1 minuteLast updated 11 days ago

Definition

public enum PhysicsQuery.WorldCastMode

Fields

Value

Description

AllReturn all the hits.
AllSortedReturn all the hits but also sort by ascending distance (closest first).
ClosestReturn only the closest hit.