18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Files
maszyna/vehicle
jerrrrycho c83c987e3f feat(physics): physics.derailment monitor tells what the criteria would do, the legacy draw decides
With monitor the run goes as with old: the legacy draw derails a vehicle too fast in a curve, with the legacy effects.
The criteria of derailment.h are evaluated as with new, and where they would derail a vehicle the log gets one line
(derailment monitor:) with the data of the entry of a real derailment: the vehicle, the track, the speed, the radius,
the cant, the lateral acceleration, D, Y/Q, the mass, the centre of gravity, the forces of the couplings, the damage
flags and the cross level. Once for a vehicle on a track, so one run of a scenery shows what new would do without
changing its course.

The entry of a derailment by the criteria names the track as well; derailment::report() writes both. The names of the
models in eu07.ini go through derailment_model_of() and name_of(), read and written back alike.
2026-11-15 20:11:10 +01:00
..