richk67 wrote:OK - I added the patch anyways. We can always back it out. The one effect Im really not sure I like is the rapid left-right jink is now heavily penalised... so all the Pile Transport junctions travel really slowly.
That can be fixed quite easily, however.
You'll have to change these numbers in physics.h
Code: Select all
static const int huge_curve_const[RAILTYPE_END] = {70000, 70000, 180000, 380000};
static const int large_curve_const[RAILTYPE_END] = {55000, 55000, 150000, 300000};
static const int medium_curve_const[RAILTYPE_END] = {18000, 18000, 45000, 95000};
static const int small_curve_const[RAILTYPE_END] = { 6500, 6500, 14000, 30000};
For that curve, -a curve of length 2 (or more precisely, length 13/8 to 20/8)- the large_curve_const is taken. I figured out (considering the curve radii) that the constant must be approximately 3 times as large as the medium_curve_const. But it may be better to just "fiddle around" with the constants rather than actually trying to calculate realistic values.
So for increased speed in curves, just increase the constants. Note that the maximum speed is proportional to the square root of the curve constant (for a fixed vehicle weight), so in order to double the speed, multiply the constants by 4.
Please note that the large_curve_constant need not be smaller than the huge_curve_constant (as the latter is already multiplied by some factor by the curve speed function). Personally, I think that the latter series of constants is already too large (I needed the heaviest steam engine from the US set to see the effect of the huge curves).
If you want, I can fiddle around with the constants and report new (better) values to you in a few days.
SirkoZ wrote:Not on such low hills and with such force/horsepower.
Well, you know that the traction force equals power divided by speed (and if you didn't, you do now). The (theoretical) maximum speed is the speed where an equilibrium is reached between the resistance forces acting on the train, and the traction force delivered by the train. In that case the equation
Code: Select all
total_resistance_forces = power / speed
is valid (or more precisely: this equation is valid if and only if the train travels at constant speed).
Now suppose that we go up-hill. Then the total resistance force is increased (by a gravitational force). If the resistance forces are larger than the traction force, the train slows down. The train does not slow down indefinitely, since when speed decreases, the traction force increases! Ultimately, a new equilibrium will be reached, i.e. a situation in which the above equation is valid again, but with different values for the total resistance forces and speed.
If you have understood these physics, you will come to the conclusion that (as long as there is gravity) trains will always have a lower maximum speed up hill than they have on flat terrain.