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