Documentation

Unity Engine

Unity Engine

providesContacts

Whether or not this Collider generates contacts for Physics.ContactEvent.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public bool providesContacts { get; set; }

Remarks

If this property is set to
true
, all contacts produced by this collider will appear in the buffer. If this property is set to false, contact generation will depend on these factors: