Version: 1.8
LanguageEnglish
  • C#

THeuristicChainIK

interface in UnityEngine.Animations

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

IK solver for chained bones using a heuristic method.

See Also: IKBase,SingleGoalIKBase,HeuristicType.

Properties

boneCountGets the total number of bones currently in the chain.
endRotationWeightGets or sets the influence weight (0-1 range) of the goal's rotation on the last bone in the chain. Higher values make the end bone's rotation more closely match the goal's rotation.
iterationsGets or sets the maximum number of iterations allowed for the IK calculations.
toleranceGets or sets the distance threshold between the root bone and the IK goal. If the distance is less than this value, the IK iteration will terminate.
weightGets or sets the overall influence weight (0-1 range) of the IK solver on the bone chain. Higher values increase the solver's effect relative to other animations.

Public Methods

AddBoneAdds a bone transform to the end of the chain.
ClearBonesClears all bones from the current IK chain.
GetBoneRetrieves the bone transform at the specified index in the chain.
InsertBoneInserts a bone transform at the specified index in the chain, shifting subsequent bones outward.
RemoveBoneRemoves the specified bone from the chain.
SetBoneReplaces the bone transform at the specified index with a new transform.