Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

PhysicsShape.ContactManifold.this[int]

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public ManifoldPoint this[int];

Parameters

Parameter Description
index The index of the manifold point required. The getter requires an index below the point count, the setter requires 0 or 1.

Returns

ManifoldPoint The specified manifold point.

Description

Indexer to access the manifold points.

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.