ドキュメント

Unity Engine

Unity Engine

useTriggers

Sets to filter contact results based on trigger collider involvement.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.