diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-21 19:13:20 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-21 19:13:20 +0000 |
commit | 4481f97f2114d07d999744224e53039b85b04553 (patch) | |
tree | ea631e87a47790981bf6d6199f8679fd352c6d0a | |
parent | Expose network link interface to define a base area of the link (diff) | |
download | ilt-4481f97f2114d07d999744224e53039b85b04553.tar.bz2 ilt-4481f97f2114d07d999744224e53039b85b04553.tar.xz ilt-4481f97f2114d07d999744224e53039b85b04553.zip |
Adjust track height to blend into terrainterrain-for-networks
-rw-r--r-- | game/network/rail.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game/network/rail.cpp b/game/network/rail.cpp index 69422aa..f226327 100644 --- a/game/network/rail.cpp +++ b/game/network/rail.cpp @@ -8,7 +8,7 @@ template class NetworkOf<RailLink, RailLinkStraight, RailLinkCurve>; constexpr auto RAIL_CROSSSECTION_VERTICES {5U}; -constexpr Size3D RAIL_HEIGHT {0, 0, 250.F}; +constexpr Size3D RAIL_HEIGHT {0, 0, 50.F}; RailLinks::RailLinks() : NetworkOf<RailLink, RailLinkStraight, RailLinkCurve> {"rails.jpg"} { } @@ -74,11 +74,11 @@ RailLinks::addLinksBetween(GlobalPosition3D start, GlobalPosition3D end) } constexpr const std::array<RelativePosition3D, RAIL_CROSSSECTION_VERTICES> railCrossSection {{ - {-1900.F, 0.F, 0.F}, + {-1900.F, 0.F, -RAIL_HEIGHT.z * 2}, {-608.F, 0.F, RAIL_HEIGHT.z}, - {0, 0.F, RAIL_HEIGHT.z * .7F}, + {0, 0.F, RAIL_HEIGHT.z / 2}, {608.F, 0.F, RAIL_HEIGHT.z}, - {1900.F, 0.F, 0.F}, + {1900.F, 0.F, -RAIL_HEIGHT.z * 2}, }}; constexpr const std::array<float, RAIL_CROSSSECTION_VERTICES> railTexturePos { 0.F, |