gunship-rs
gunship-rs copied to clipboard
Quaternion::look_rotation() Does Not Produce Correct Result
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.
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.