mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 04:31:08 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user