One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

MeshJointInfluence

struct · iOS 18.0+ · SDK 27.1

struct MeshJointInfluence

A 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.

Members (6)

init · iOS 18.0+

init

TypeScript
static initJointIndexWeight(jointIndex: number, weight: number): MeshJointInfluence
Swift declaration
init(jointIndex: Int, weight: Float)
get · iOS 18.0+

jointIndex

TypeScript
get jointIndex(): number
Swift declaration
var jointIndex: Int { get set }
set · iOS 18.0+

jointIndex

TypeScript
set jointIndex(value: number)
Swift declaration
var jointIndex: Int { get set }
get · iOS 18.0+

weight

TypeScript
get weight(): number
Swift declaration
var weight: Float { get set }
set · iOS 18.0+

weight

TypeScript
set weight(value: number)
Swift declaration
var weight: Float { get set }
init · iOS 18.0+

init

TypeScript
static init(): MeshJointInfluence
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →