Revert "Better handle interpolation when setting interpolation time to 0"

This reverts commit 8cf5f96392.
This commit is contained in:
Alexander Bock
2020-12-11 12:30:05 +01:00
parent 37761dde2a
commit 778b4e61b3
3 changed files with 4 additions and 22 deletions
+1 -6
View File
@@ -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;