useTriggers
Sets to filter contact results based on trigger collider involvement.
Read time 1 minuteLast updated 13 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 _useNormalAngle, _minNormalAngle and _maxNormalAngle are ignored. Other active contacts will continue to be filtered by the normal angles of the collisions.