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

PhysicsBody.fastCollisionsAllowed

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 fastCollisionsAllowed;

Description

Treat this body as high speed object that performs continuous collision detection against dynamic and kinematic bodies, but not other high speed bodies. Fast collision bodies should be used sparingly, not because they are slow but because everything using fast collisions does not work well. They are not a solution for general dynamic-versus-dynamic continuous collision. They also may interfere with joint constraints.

The 2D physics system already uses continuous collision detection automatically to prevent tunneling when dynamic bodies approach static bodies. If a very fast-moving object still passes through another object, set this property to true to force fast collision detection. Enabling this setting can reduce performance, so use it only for the bodies that need it.