Replies: 1 comment
-
yup, that's another way of doing it, why not... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking the line line of the code here
human/src/draw/face.ts
Line 90 in 6239631
it is clear to see the role of bearing and strength as polar coordinate with y axis as the reference axis.
Approximating eye to be a sphere, and arc line on the eye surface as a straight line; if I where to express the gaze direction as two separate angles. I would break into two components (in the unit of radian) as:
[(Math.sin(f.rotation.gaze.bearing) * f.rotation.gaze.strength),
(Math.cos(f.rotation.gaze.bearing) * f.rotation.gaze.strength]
I might have to divide this vector by a factor of 2, to account for the D=2R for the sphere.
Beta Was this translation helpful? Give feedback.
All reactions