mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 02:48:25 -05:00
Revert "Better handle interpolation when setting interpolation time to 0"
This reverts commit 8cf5f96392.
This commit is contained in:
@@ -1275,12 +1275,7 @@ glm::dvec3 OrbitalNavigator::moveCameraAlongVector(const glm::dvec3& camPos,
|
||||
velocity = 1.0 - destination / distFromCameraToFocus;
|
||||
}
|
||||
else { // When flying away from anchor
|
||||
if (destination == 0.0) {
|
||||
velocity = -1.0;
|
||||
}
|
||||
else {
|
||||
velocity = distFromCameraToFocus / destination - 1.0;
|
||||
}
|
||||
velocity = distFromCameraToFocus / destination - 1.0;
|
||||
}
|
||||
velocity *= _velocitySensitivity * deltaTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user