mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 00:59:19 +02:00
Fix for wheel flat calculation when going backwards
This commit is contained in:
committed by
tmj-fstate
parent
2f5b6dee70
commit
7ddc198171
@@ -4504,7 +4504,7 @@ void TMoverParameters::ComputeTotalForce(double dt) {
|
||||
Fb *= factor;
|
||||
FTrain *= factor;
|
||||
}
|
||||
if (nrot < 0.1)
|
||||
if (std::abs(nrot < 0.1))
|
||||
{
|
||||
WheelFlat = sqrt(square(WheelFlat) + abs(Fwheels) / NAxles*Vel*0.000002);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user