this[]
Indexer to access the manifold points in the array.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
this[int]
public PhysicsShape.ContactManifold.ManifoldPoint this[int index] { readonly get; set; }
Parameters
The index of the manifold point required (must be 0 or 1).
Returns
Type | Description |
|---|---|
| ManifoldPoint | The specified manifold point. |
Remarks
The setter is only useful during a pre-contact callback, where writing a point back applies the change to the contact this step.