You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it looks like there is a case where it doesn't work. I first tried:
glm::quat(glm::vec3(1, 0, 0), glm::vec3(-1, 0, 0)); and it worked fine but
glm::quat A = glm::quat(glm::vec3(0, 1, 0), glm::vec3(0, -1, 0));
Worked fine...
It seems that the quaternion constructor does not handle the special case when the two vectors are facing away from each other. Using this code:
I get different results
[0, 0, 0, 1]
and[-1, 0, 0, 0]
.glm::rotation
gives the expected one.The text was updated successfully, but these errors were encountered: