useTriggers
Sets to filter contact results based on trigger collider involvement.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public bool useTriggers
Remarks
Set to false to ignore any contacts involving trigger colliders. Set to true, to filter any contacts involving triggers and return such contacts.
Note: Contacts filtered by involved trigger colliders, are not filtered by the normal angles of the collisions, so ContactFilter2D.useNormalAngle, ContactFilter2D.minNormalAngle and ContactFilter2D.maxNormalAngle are ignored. Other active contacts will continue to be filtered by the normal angles of the collisions.