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

Add singularity check for quatLookAt #770

Closed
wants to merge 1 commit into from

Conversation

gurki
Copy link

@gurki gurki commented May 28, 2018

This adds an additional layer of safety in cases where up closely matches direction vector. Also re-uses code between RH and LH cases.

@gustav3d
Copy link

gustav3d commented Apr 6, 2019

Why should this be default ? There need to be a config to enable things that hurt performance :)

@gurki
Copy link
Author

gurki commented Apr 8, 2019

Fair point. I see two options, provide an alternative method call like quatLookAtSafe(), or introduce a define, e.g. GLM_HANDLE_QUAT_LOOK_AT_SINGULARITIES. What would be the glm-way?

@gurki
Copy link
Author

gurki commented May 10, 2019

Ping.

Groovounet pushed a commit that referenced this pull request Apr 12, 2020
@Groovounet
Copy link
Member

This issue should be fixed with b4c5bb6

Thanks to @domgho input.

@Groovounet Groovounet closed this Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants