Make path end a little earlier, to be safe from numeric errors at the very end

This commit is contained in:
Emma Broman
2021-12-13 11:07:30 +01:00
parent 6f6519fbf7
commit 689e67911f

View File

@@ -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 {