this[]
Indexer to access the manifold points.
Read time 1 minuteLast updated 12 days ago
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. The getter requires an index below the point count, the setter requires 0 or 1.
Returns
Type | Description |
|---|---|
| ManifoldPoint | The specified manifold point. |
Remarks
The getter is bounded by the current point count, while the setter accepts index 0 or 1 so a point can be written during a pre-contact callback.