useTriggers
Whether trigger shapes receive the explosion impulse alongside non-trigger shapes. A trigger shape reports overlaps rather than producing a physical response, so it is skipped by default and only a non-trigger shape is pushed by the explosion. Set this to true when a trigger shape should be pushed as well, for instance when the same shape is used both to detect an overlap and to be thrown by a blast. Defaults to false.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool useTriggers { readonly get; set; }