mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 17:30:04 -05:00
Cancel follow anchor node rotation interpolation when the anchor is changed
This commit is contained in:
@@ -116,7 +116,7 @@ datamessagestructures::CameraKeyframe ExternInteraction::generateCameraKeyframe(
|
||||
//kf._position = global::navigationHandler.camera()->positionVec3();
|
||||
kf._position = navHandler.orbitalNavigator().anchorNodeToCameraVector();
|
||||
|
||||
kf._followNodeRotation = navHandler.orbitalNavigator().followingNodeRotation();
|
||||
kf._followNodeRotation = navHandler.orbitalNavigator().followingAnchorRotation();
|
||||
if (kf._followNodeRotation) {
|
||||
kf._position = glm::inverse(focusNode->worldRotationMatrix()) * kf._position;
|
||||
kf._rotation = navHandler.orbitalNavigator().anchorNodeToCameraRotation();
|
||||
|
||||
Reference in New Issue
Block a user