Animator.SetBoneLocalRotation(HumanBodyBones humanBoneId, Quaternion rotation)
Sets local rotation of a human bone during a IK pass.
Parameters:
Name | Type | Description |
---|---|---|
humanBoneId | HumanBodyBones | The human bone Id. |
rotation | Quaternion | The 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.