-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SL-19286 Avatar is upside down when viewed from below #235
Conversation
// A dot B = mag(A) * mag(B) * cos(angle between A and B) | ||
// so... cos(angle between A and B) = A dot B / mag(A) / mag(B) | ||
// = A dot B for unit vectors | ||
|
||
LLVector3 skyward = getReferenceUpVector(); | ||
|
||
const F32 look_down_limit = 179.f * DEG_TO_RAD;; | ||
const F32 look_up_limit = 1.f * DEG_TO_RAD; | ||
const F32 look_up_limit = 10.f * DEG_TO_RAD; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it's going to reserve 10 degrees intead of 1? Please leave a comment in code that explains why this value was choosen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you see any comment about 179 degrees? :-)
This value was chosen empirically, the issue is observed on lower values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean a comment like "10 degrees dead zone was choosen to avoid issues with vamera flipping", lets not follow bad practices.
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Avatar is upside down when viewed from below after left-clicking the mouse on the avatar and dragging down