18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 22:55:16 +01:00
Files
maszyna/simulation/simulationstateserializer.cpp
jerrrrycho 0074197c1d feat(physics): physics.trackcheck logs the tracks of a scenery the criteria of derailment find suspicious
With physics.trackcheck yes (no by default) every rail track is checked once the scenery loaded, and the suspicious
ones are logged, a line for each (trackcheck:), with a summary of the count of each kind: a speed limit over the speed
a reference vehicle overturns or climbs the rail at in the curve (an EU07 and a 4-axle coach from the defaults of
derailment.h, no .fiz needed; a track without a limit of its own gets 125 km/h and is counted apart), cant held on a
straight track, cant over 160 mm, a curve under 40 m with a limit over 40 km/h, and unevenness out of the plausible
range. The damage flags are only counted by their value: the sceneries set them for the jolts. The radius is the
tightest of the design geometry of the path, so curves given by their control points only count as well.

The check is a plain function of the data of the tracks with a log sink (world/TrackCheck.h, in eu07_core), tested on
its own; derailment::climbing_speed() gives the speed the flange climbs at, none where it doesn't.
2026-11-15 20:11:11 +01:00

83 KiB