Page 1 of 1

Train physics

Posted: Tue Apr 03, 2018 10:58 am
by ejg
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.

Re: Train physics

Posted: Tue Apr 03, 2018 11:51 am
by DaveMcW

Re: Train physics

Posted: Wed Apr 04, 2018 8:13 am
by Wackerstamfer
Yeah, seen that. It's however not exact.

We'll run some tests... :geek: :twisted:

Re: Train physics

Posted: Wed Apr 04, 2018 10:56 am
by Optera
Derived from acceleration code:

Code: Select all

speed[t] = (speed[t-1] - min( speed[t-1]; friction/weight) + power/weight/1000) * (1 - air_resistance/(weight/1000) )
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