Animator.GetIKRotation(AvatarIKGoal goal)
Gets the rotation of an IK goal.
Parameters:
Name | Type | Description |
---|---|---|
goal | AvatarIKGoal | The AvatarIKGoal that is is queried. |
Returns:
type | Description |
---|---|
Quaternion | rotation of an IK goal. |
Usage
---@type Animator
local animator;
---@type AvatarIKGoal
local goal;
local val0 = animator.GetIKRotation(goal)
Extra Detail
An IK goal is a target position and rotation for a specific body part. Unity can calculate how to move the part toward the target from the starting point (ie, the current position and rotation obtained from the animation). This function gets the current rotation of the specified goal in world space.