# PhysicsQuery.WorldCastMode

> Controls what results are returned from a cast query against the PhysicsWorld.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public enum PhysicsQuery.WorldCastMode
```

## Fields

| Value                                                                                                              | Description                                                              |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| [All](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/worldcastmode/all.md)             | Return all the hits.                                                     |
| [AllSorted](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/worldcastmode/allsorted.md) | Return all the hits but also sort by ascending distance (closest first). |
| [Closest](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/worldcastmode/closest.md)     | Return only the closest hit.                                             |
