QueryParameters Constructor

Declaration

public QueryParameters(int layerMask, bool hitMultipleFaces, QueryTriggerInteraction hitTriggers, bool hitBackfaces);

Parameters

layerMask A LayerMask that is used to selectively ignore Colliders when casting a ray.
hitMultipleFaces Whether raycast batch query should hit multiple faces.
hitTriggers Whether queries hit Triggers by default.
hitBackfaces Whether physics queries should hit back-face triangles.

Description

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


Did you find this page useful? Please give it a rating: