Trains

Train physics

How gradient, rolling, curve and air resistance act on Create's trains, and the rules that keep them manageable.

With realistic train physics on (the default), four forces act on every moving train, every tick:

ForceEffect
GradientPulls the train towards the lower end: uphill it slows down, downhill it speeds up.
Rolling resistanceA small constant braking, as for steel wheels on rails.
Air resistanceGrows with the square of the speed; noticeable only at high speed.
Curve resistanceThe tighter the curve under the train, the more it brakes.

The gradient is taken from the height of the front and back of every carriage, so a long train feels the average gradient under all its carriages. Create knows neither mass nor tractive power, so every train is treated alike, however long, unless it carries drive blocks: then its weight and the pull of its drives decide how fast it gets going, see Weight and power.

What you notice

  • Uphill, a train on a schedule or with a driver loses speed; the steeper, the more. It never drops below 2 blocks per second: its drive is always stronger than the slope, only slower. Create's steep ramps stay passable. The one exception is a steep gradient in rain or snow, where the wheels slip, see Wheel slip.
  • Downhill, a driven train does not run away: its brakes hold it at the speed its control wants.
  • A train without drive (no destination and nobody at the controls) that is still moving coasts: it slows down on the flat, rolls faster downhill (up to Create's top speed) and comes to a stop uphill. The same goes for a train whose drive blocks cannot pull (no wire, no fuel, too little steam).
  • Tight curves cost a little speed on top of Create's turning speed.

Rules that keep trains manageable

  • A standing train stays where it is. Gravity never sets it rolling, so parked trains do not run off on a slope.
  • Stops are still met. While a train brakes for a station or a signal, the slope does not push it: Create works out its braking distance without gravity, and a push downhill would carry the train past the stop.
  • No train gets faster than Create's top speed for it.

Switching it off

Set realisticTrainPhysics=false in config/createoptimizedrails.properties, see Settings. Trains then run as in Create again, and wheel slip is off too. The curve speed rule stays on, and so do drives, without gradients, resistances and grip.