Animation · function

setJoint

Write one joint's transform straight into a pose.

Explained in Animation.

function setJoint(pose: Pose, joint: number, translation: ArrayLike<number>, rotation: ArrayLike<number>, scale: ArrayLike<number>): void
import { setJoint } from '@driftengine/animation';

Parameters

ParameterTypeDescription
posePose
jointnumber
translationArrayLike<number>
rotationArrayLike<number>
scaleArrayLike<number>

In depth

What a solver drives. Track B's ragdolls need a pose to be data rather than only the result of sampling, and this is the whole of that requirement — stated here so the seam exists before the track that needs it, rather than being retrofitted around a closed type.