mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-11 22:20:47 -06:00
Feature/cmake cleanup (#381)
* Rename OnScreenGui module to ImGui * Support multiple external module folders (closes #31) * Cleaning up CMake files * Restructure application specification * Add parameter for library mode to all modules * Add functions to handle global variable state * Misc/remove warnings (#383) * Increase build timeout and do a clean rebuild every commit
This commit is contained in:
@@ -165,7 +165,7 @@ glm::dvec3 NavigationHandler::focusNodeToCameraVector() const {
|
||||
}
|
||||
|
||||
glm::quat NavigationHandler::focusNodeToCameraRotation() const {
|
||||
glm::dmat4 invWorldRotation = glm::inverse(focusNode()->worldRotationMatrix());
|
||||
glm::dmat4 invWorldRotation = glm::dmat4(glm::inverse(focusNode()->worldRotationMatrix()));
|
||||
return glm::quat(invWorldRotation) * glm::quat(_camera->rotationQuaternion());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user