contactCount
Gets the number of contacts for this collision.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public int contactCount { get; }
Remarks
A collision can involve multiple contact points. This property allows you to determine how many are involved. You can use this value when retrieving contacts using Collision.GetContact or Collision.GetContacts.