GetContact(int)
Gets the contact point at the specified index.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public ContactPoint2D GetContact(int index)
Parameters
The index of the contact to retrieve.
Returns
Type | Description |
|---|---|
| ContactPoint2D | The contact at the specified |
Remarks
You can retrieve individual contacts for this collision by . You can use Collision2D.contactCount to determine how many contacts are available.
indexAdditional Resources: Collision2D.contactCount and Collision2D.GetContacts.