- Home /
Questions about Head Look Controller
Hello,
I'm learning the Head Look Controller. https://assetstore.unity.com/packages/tools/animation/head-look-controller-4
There are some points I don't understand.
=================================
Where is the code to limit the Roll rotation of the head?
=================================
The hAngle is got from AngleAroundAxis(segment.referenceLookDir, lookDirGoal, segment.referenceUpDir);
Why not using AngleAroundAxis(segment.referenceLookDir, lookDirGoal, referenceRightDir) to get the vAngle?
=================================
This part looks like is to covert the local lookDir to world look Rot. Quaternion lookRot = ( (parentRot Quaternion.LookRotation(lookDir, segment.dirUp)) Quaternion.Inverse( parentRot * Quaternion.LookRotation( segment.referenceLookDir, segment.referenceUpDir ) ) ); Could anyone explain why these operation can turn a lookDir to world Rot?
Thanks
Your answer
Follow this Question
Related Questions
World position question 1 Answer
Rotating the upper body of a game character 1 Answer
[SOLVED] Head and Neck rotation 1 Answer
How to rotate bone relative to camera using LookAt 3 Answers
Bone look at. 1 Answer