Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Bug on Quaternion::LookAt() #50

Open
OttoX opened this issue Aug 30, 2021 · 0 comments
Open

Bug on Quaternion::LookAt() #50

OttoX opened this issue Aug 30, 2021 · 0 comments

Comments

@OttoX
Copy link

OttoX commented Aug 30, 2021

use default handedness: LH
testcase:


Vector<float, 3> dir(0.615524292f,0,-1.49077988f);
dir.Normalize();

Vector<float, 3> up(0,1,0);
Quaternion<float> q = Quaternion<float>::LookAt(dir, up);

output q, the result is wrong:
q = (-0.194535, 0.000000, 0.980896, 0.000000);

right answer should be:
q = (0.194535, 0.000000, 0.980896, 0.000000);

This was referenced Aug 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant