contactCount
Gets the number of contacts for this collision.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
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 Collision2D.GetContact or Collision2D.GetContacts.