useTriggers
Sets to filter contact results based on trigger collider involvement.
阅读时间1 分钟最后更新于 21 天前
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.