getBoneId

fun getBoneId(vertexIndex: Int, boneIndex: Int): Int

Gets the bone ID for a specific vertex and bone index. The ID can be used to look up the corresponding bone transformation matrix.

Return

The bone ID, or 0 if the vertex is not found in the mesh.

Parameters

vertexIndex

The index of the vertex.

boneIndex

The index of the bone.


fun getBoneId(vertex: Mesh.Vertex, boneIndex: Int): Int

Gets the bone ID for a specific vertex and bone index. The ID can be used to look up the corresponding bone transformation matrix.

Return

The bone ID, or 0 if the vertex is not found in the mesh.

Parameters

vertex

The vertex.

boneIndex

The index of the bone.