isTrigger
Whether the shape is a trigger, which generates overlap events but never generates a collision response.
読み終わるまでの所要時間 1 分最終更新 3日前
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool isTrigger { readonly get; set; }
Remarks
A trigger only detects other shapes while its triggerEvents is enabled. Triggers do not collide with other triggers and do not have continuous collision, instead, use a ray or shape cast for those scenarios. Triggers still contribute to the body mass if they have non-zero density.