Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


providesContacts

Whether or not this Collider generates contacts for Physics.ContactEvent.
Read time 1 minuteLast updated 4 days 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: