17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-03 03:52:00 +01:00

refactor(track): the rail layout value types (crossings, sizes, check and guard rails, cuts, bands, fills, treads, layout) and the wheel and rail constants live in world/RailLayout.h in track_rails instead of inside TTrack

This commit is contained in:
maj00r
2026-10-14 09:21:19 +02:00
parent 2143cfc043
commit a88774d279
6 changed files with 189 additions and 165 deletions

View File

@@ -13,16 +13,6 @@ http://mozilla.org/MPL/2.0/.
namespace track_rails {
double constexpr flangeway { 0.045 };
double constexpr blend { 0.015 };
double constexpr tread_fade { 0.02 };
double constexpr wheel_width { 0.14 };
double constexpr back_to_back { 1.36 };
double constexpr rolled_band { wheel_width - ( 1.435 - back_to_back ) / 2.0 };
double constexpr nose_tip { 0.012 };
double constexpr middle_angle { 0.35 };
double constexpr wide_angle { 0.785 };
void forget();
// how far a wing rail reaches past the crossing point of the rails
double wing_reach( double const Slope );