Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

PhysicsWorld.ExplosionDefinition.useTriggers

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public bool useTriggers;

Description

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.