Update factor used for default height for camera paths to be slighlty larger

Just to look better in the spaceship!
This commit is contained in:
Emma Broman
2021-12-16 21:36:25 +01:00
parent e7b10a9773
commit 1f74ada801

View File

@@ -44,6 +44,7 @@
namespace {
constexpr const char _loggerCat[] = "Path";
constexpr const float Epsilon = 1e-5f;
constexpr const double DefaultHeightRadiusFactor = 2.8;
constexpr const char SunIdentifier[] = "Sun";
@@ -415,7 +416,7 @@ Waypoint computeWaypointFromNodeInfo(const NodeInfo& info, const Waypoint& start
}
else {
const double radius = Waypoint::findValidBoundingSphere(targetNode);
const double defaultHeight = 2.0 * radius;
const double defaultHeight = DefaultHeightRadiusFactor * radius;
const double height = info.height.value_or(defaultHeight);
const double distanceFromNodeCenter = radius + height;