Skip to main content

Animator.SetBoneLocalRotation(HumanBodyBones humanBoneId, Quaternion rotation)

Sets local rotation of a human bone during a IK pass.

Parameters:

NameTypeDescription
humanBoneIdHumanBodyBonesThe human bone Id.
rotationQuaternionThe local rotation.

Usage

---@type Animator
local animator;

---@type HumanBodyBones
local humanBoneId;

---@type Quaternion
local rotation;


animator.SetBoneLocalRotation(humanBoneId, rotation)

Extra Detail

Can be used to create rotation IK goals for any human bone. Ex: Control lower and upper body independantly by setting Hips and Spine local rotation during an IK pass.