GetContact(int)
Gets the contact point at the specified index.
阅读时间1 分钟最后更新于 1 个月前
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 |
Remarks
You can retrieve individual contacts for this collision by . You can use Collision.contactCount to determine how many contacts are available.
indexAdditional Resources: Collision.contactCount and Collision.GetContacts.