queriesStartInColliders
Set the raycasts or linecasts that start inside Colliders to detect or not detect those Colliders.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public static bool queriesStartInColliders { get; set; }
Remarks
When performing a ray/line cast, the start point can begin inside a Collider. When this occurs, this property controls whether these Colliders are returned or not. When set to true, such Colliders are returned.
Additional Resources: Physics2D.Raycast, Physics2D.Linecast.