From cb830feb63b5342649d83bb18a9d0faae9a32867 Mon Sep 17 00:00:00 2001 From: Emma Broman Date: Fri, 6 May 2022 15:15:22 +0200 Subject: [PATCH] Increase epsilon for finished camera path rotation, again It still happened every now and then that the rotation didn't quite finish at the end of the path --- src/navigation/path.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/navigation/path.cpp b/src/navigation/path.cpp index fbefd47c8b..9960049536 100644 --- a/src/navigation/path.cpp +++ b/src/navigation/path.cpp @@ -189,10 +189,12 @@ bool Path::hasReachedEnd() const { } bool isPositionFinished = (_traveledDistance / pathLength()) >= 1.0; + + constexpr const double RotationEpsilon = 0.0001; bool isRotationFinished = ghoul::isSameOrientation( _prevPose.rotation, _end.rotation(), - glm::epsilon() + RotationEpsilon ); return isPositionFinished && isRotationFinished;