gunship-rs icon indicating copy to clipboard operation
gunship-rs copied to clipboard

Quaternion::look_rotation() Does Not Produce Correct Result

Open randomPoison opened this issue 10 years ago • 1 comments

Right now Quaternion::look_rotation() produces a quaternion that looks in the correct direction but does not have the correct up vector. The fix should be simple, just calculate the necessary rotation about the new forward vector to correct any error.

randomPoison avatar Jun 01 '15 21:06 randomPoison

To be clear: My proposed solution (manually correct the orientation to have the right up vector) should work but I don't know if it's best way of handling this. Whoever works on this should do some research to determine what the "correct" way of calculating look rotation with quaternions is.

randomPoison avatar Sep 17 '16 16:09 randomPoison