Skip to content

Commit 90826e4

Browse files
committed
Fix maximum superelevation, update documentation
1 parent e715fa4 commit 90826e4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
Binary file not shown.

Source/Documentation/Manual/features-route.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -952,19 +952,19 @@ and a third standard for 160 kph and up, the required Minimum/MaximumSpeed setti
952952
Note that the order of the ``ORTSSuperElevation`` blocks is important; they are read from top down
953953
so the slowest superelevation standard should be on top of all faster superelevation standards.
954954

955-
Open Rails also supports a simpler but less modern way to define superelevation based on curve
956-
radius only, without consideration for underbalance. This method may be appropriate for railroads
957-
built long in the past and will not produce the best results for modern routes.
958-
The parameter ``ORTSTrackSuperElevation`` can be added to the .trk file to define a table
959-
of superelevation values::
955+
Open Rails also supports a simpler way to define superelevation based on curve radius only, resulting
956+
in the same superelevation regardless of track speed. If a railroad uses this simplified method, they
957+
would provide a table of track curve radii and the superelevation used at that radius (usually also
958+
including a maximum speed for the curve). This table can then be provided to OR using the
959+
``ORTSTrackSuperElevation`` parameter in the .trk file::
960960

961961
ORTSTrackSuperElevation (
962962
x1 y1
963963
x2 y2
964964
........
965965
)
966966
967-
where x and y are a series of paired parameters specifying the curve radius (default meters)
967+
Where x and y are a series of paired parameters specifying the curve radius (default meters)
968968
(x value), and the amount of superelevation (default meters) (y value). The statement will take
969969
as many paired values as desired, as long as the radius values are in increasing order.
970970
Each paired set of values must have an x and y value present. If it is desired

Source/Orts.Simulation/Simulation/SuperElevation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void MarkSections(Simulator simulator, List<TrVectorSection> SectionList, float
153153
effectiveRunoffSlope = Math.Min(standard.RunoffSlope, standard.RunoffSpeedMpS / maxCurveSpeedMpS);
154154

155155
// Ensure superelevation is limited to the track gauge no matter what to avoid NaN errors
156-
maxElev = MathHelper.Clamp(maxElev, 0.0f, simulator.SuperElevationGauge);
156+
maxElev = MathHelper.Clamp(standard.MaxCantM, 0.0f, simulator.SuperElevationGauge);
157157

158158
break;
159159
}

0 commit comments

Comments
 (0)