API Reference · Skinning and morph targets

JointBinding

Namespace: Ava3D

public readonly record struct JointBinding

The four joints that move one vertex, and how much each of them does.

Indices into Skin.Joints, held as UInt16 because glTF stores them as unsigned bytes or unsigned shorts and a rig large enough to need more than 65,535 joints does not exist. Weights are expected to sum to 1; a file whose do not is renormalised on import rather than here, so this stays a plain value.

Constructors

MemberDescription
JointBinding(ushort J0, ushort J1, ushort J2, ushort J3, Vector4 Weights)

The four joints that move one vertex, and how much each of them does.

Indices into Skin.Joints, held as UInt16 because glTF stores them as unsigned bytes or unsigned shorts and a rig large enough to need more than 65,535 joints does not exist. Weights are expected to sum to 1; a file whose do not is renormalised on import rather than here, so this stays a plain value.

J0

First joint index.

J1

Second joint index.

J2

Third joint index.

J3

Fourth joint index.

Weights

How much each of the four contributes, in the same order.

Properties

MemberDescription
ushort J0 { get; set; }

First joint index.

ushort J1 { get; set; }

Second joint index.

ushort J2 { get; set; }

Third joint index.

ushort J3 { get; set; }

Fourth joint index.

Vector4 Weights { get; set; }

How much each of the four contributes, in the same order.

See also