Skip to content
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

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

LLGuru
Copy link
Contributor

@LLGuru LLGuru commented Jun 7, 2023

Avatar is upside down when viewed from below after left-clicking the mouse on the avatar and dragging down

@LLGuru LLGuru requested a review from marchcat June 7, 2023 16:54
@github-actions github-actions bot added the c/cpp label Jun 7, 2023
// 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;
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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.

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@LLGuru
Copy link
Contributor Author

LLGuru commented Jun 7, 2023

I have read the CLA Document and I hereby sign the CLA

@LLGuru LLGuru self-assigned this Jun 7, 2023
@LLGuru LLGuru merged commit 247f6ae into DRTVWR-582-maint-U Jun 7, 2023
@LLGuru LLGuru deleted the SL-19286 branch June 7, 2023 17:49
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2023
@AtlasLinden
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants