Version: 2021.2
언어: 한국어
public uint GetFaceIndex (int i);

파라미터

i Index of the contact point.

반환

uint Index of a face this contact point belongs to.

설명

Get the index of a face a particular contact point belongs to in this contact pair. Use this with Mesh.triangles.

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.