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

Expose a direction preserving slerp for Quats #572

Open
VVishion opened this issue Oct 23, 2024 · 0 comments
Open

Expose a direction preserving slerp for Quats #572

VVishion opened this issue Oct 23, 2024 · 0 comments

Comments

@VVishion
Copy link
Contributor

VVishion commented Oct 23, 2024

Preserving the intended rotation direction is useful in certain scenarios. Its the same slerp function without the if statement

if dot < 0.0 {
     end = -end;
     dot = -dot;
}

and the result probably needs normalization

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

No branches or pull requests

1 participant