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
This commit is contained in:
Emma Broman
2022-05-06 15:15:22 +02:00
parent 8ddac62542
commit cb830feb63

View File

@@ -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<double>()
RotationEpsilon
);
return isPositionFinished && isRotationFinished;