mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 04:00:37 -06:00
Make path end a little earlier, to be safe from numeric errors at the very end
This commit is contained in:
@@ -156,7 +156,7 @@ std::string Path::currentAnchor() const {
|
||||
}
|
||||
|
||||
bool Path::hasReachedEnd() const {
|
||||
return (_traveledDistance / pathLength()) >= 1.0;
|
||||
return remainingDistance() < 100; // Allow a 100 meter difference
|
||||
}
|
||||
|
||||
CameraPose Path::interpolatedPose(double distance) const {
|
||||
|
||||
Reference in New Issue
Block a user