init
TypeScriptstatic initJointIndexWeight(jointIndex: number, weight: number): MeshJointInfluenceSwift declarationinit(jointIndex: Int, weight: Float)struct · iOS 18.0+ · SDK 27.1
struct MeshJointInfluenceA binding to a joint, which consists of the joint's index and the weight of that joint's influence on a vertex. A vertex may be influenced by one or more joints. The skinned position of that vertex is defined by a set of MeshJointInfluence values whose weights sum to 1. The skinned position is given by: ```swift position = vertexPosition(transformedByJoint: influences[0].jointIndex) * influences[0].weight + vertexPosition(transformedByJoint: influences[1].jointIndex) * influences[1].weight + ... ``` The skinned position of a vertex is a linear combination of the vertex's position transformed by each joint, with weights given by the MeshJointInfluence values. To transform a vertex position by a joint, the initial vertex position is first transformed by the joint's inverse bind pose matrix, then by the local-to-parent transform of the joint, and finally by the local-to-parent transform of each of the joint's parents.
static initJointIndexWeight(jointIndex: number, weight: number): MeshJointInfluenceSwift declarationinit(jointIndex: Int, weight: Float)get jointIndex(): numberSwift declarationvar jointIndex: Int { get set }set jointIndex(value: number)Swift declarationvar jointIndex: Int { get set }get weight(): numberSwift declarationvar weight: Float { get set }set weight(value: number)Swift declarationvar weight: Float { get set }static init(): MeshJointInfluenceSwift declarationinit()No declarations were skipped in this snapshot.