Train physics
Train physics
Does anyone know where I can find the exact train physics (formula's) factorio is using the calculate the speed, acceleration, braking distance etc.? I only have found a lot of empirical stuff but no actual formula's describing the physics currently used.
-
- Long Handed Inserter
- Posts: 83
- Joined: Sat Oct 22, 2016 9:38 pm
- Contact:
Re: Train physics
Yeah, seen that. It's however not exact.
We'll run some tests...
We'll run some tests...
Re: Train physics
Derived from acceleration code:
Weight, power and friction is summed across the whole train, air resistance is taken only from the front carriage.
Original post: viewtopic.php?f=66&t=53445&p=312921&hil ... la#p312921
Code: Select all
speed[t] = (speed[t-1] - min( speed[t-1]; friction/weight) + power/weight/1000) * (1 - air_resistance/(weight/1000) )
Original post: viewtopic.php?f=66&t=53445&p=312921&hil ... la#p312921
My Mods: mods.factorio.com