Preparatory refactoring for computing curve position absed on travelled distance

This commit is contained in:
Emma Broman
2020-02-13 14:37:08 -05:00
parent 3ead8a92dd
commit 1f2840c320
5 changed files with 59 additions and 55 deletions
@@ -133,6 +133,8 @@ void AutoNavigationHandler::updateCamera(double deltaTime) {
double t = (_currentTime - cps.startTime()) / cps.duration();
t = std::max(0.0, std::min(t, 1.0));
// TODO: compute interpolation variable using travelled distnace instead
// TODO: don't set every frame
// Set anchor node in orbitalNavigator, to render visible nodes and
// add possibility to navigate when we reach the end.