文档

Unity Engine

Unity Engine

providesContacts

Whether or not this Collider generates contacts for Physics.ContactEvent.
阅读时间1 分钟最后更新于 1 个月前

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: