# QueryParameters(int, bool, QueryTriggerInteraction, bool)

> Struct used to set up parameters for queries: RaycastCommand, BoxcastCommand, CapsulecastCommand, SpherecastCommand.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public QueryParameters(int layerMask = -5, bool hitMultipleFaces = false, QueryTriggerInteraction hitTriggers = QueryTriggerInteraction.UseGlobal, bool hitBackfaces = false)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): A [LayerMask](/engine/6000.6/script-reference/unityengine/layermask.md) that is used to selectively filter which colliders are considered when casting a ray.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether raycast batch query should hit multiple faces.**** (\[QueryTriggerInteraction]\(/engine/6000.6/script-reference/unityengine/querytriggerinteraction)): Whether queries hit Triggers by default.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether physics queries should hit back-face triangles.
