QueryParameters(int, bool, QueryTriggerInteraction, bool)
Struct used to set up parameters for queries: RaycastCommand, BoxcastCommand, CapsulecastCommand, SpherecastCommand.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public QueryParameters(int layerMask = -5, bool hitMultipleFaces = false, QueryTriggerInteraction hitTriggers = QueryTriggerInteraction.UseGlobal, bool hitBackfaces = false)
Parameters
Whether raycast batch query should hit multiple faces.
Whether queries hit Triggers by default.
Whether physics queries should hit back-face triangles.