Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


this[]

Indexer to access the manifold points in the array.
Read time 1 minuteLast updated 13 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

index

The index of the manifold point required (must be 0 or 1).

Returns

Type

Description

ManifoldPointThe 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.