Skip to content

LookAtIK

extends IKSolver

LookAtIK is used to achieve automatic orientation of a character or object towards a specific target. By using LookAtIK, you can make the head, eyes, or other body parts of an object automatically face the target, creating a more natural animation effect.

成员变量

LookAtIK.target : Transform|null
The Transform that faces the target object.
LookAtIK.head : Transform|null
The Transform of the head.
LookAtIK.headWeight : number
Head weight, used to control the orientation effect of the head.
LookAtIK.bodyWeight : number
Body weight, used to control the overall orientation effect of the body.
LookAtIK.eyesWeight : number
Eye weight, used to control the orientation effect of the eyes.
LookAtIK.clampWeightBody : number
The rotation range of the body skeleton.
LookAtIK.clampWeightEyes : number
The rotation range of the eye bones.
LookAtIK.clampWeightHead : number
The rotation range of the head bone.