Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetContactPointFaceIndex(int)

Get the index of a face that a particular contact point belongs to in this ContactPairPoint.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public uint GetContactPointFaceIndex(int contactIndex)

Parameters

contactIndex

The ContactPairPoint index.

Returns

Type

Description

uintIndex of a face this contact point belongs to.

Remarks

Only valid if one of the colliders in this pair is a non-convex MeshCollider. In this case, that collider will always be the second shape of the pair. A value of 0xffffFFFF indicates an error, which could be none of the Colliders were non-convex MeshColliders, or that the contact point index was out of bounds. Use this with _triangles.