Version: 2022.3
언어: 한국어

ContactPair.GetContactPointFaceIndex

매뉴얼로 전환
public uint GetContactPointFaceIndex (int contactIndex);

파라미터

contactIndex The ContactPairPoint index.

반환

uint Index of a face this contact point belongs to.

설명

Get the index of a face that a particular contact point belongs to in this ContactPairPoint.

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 Mesh.triangles.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961