Max Curve Speed

From #openttdcoop wiki

Revision as of 19:39, 15 December 2012 by Mfb (Talk | contribs) (extended. Source: http://hg.openttd.org/openttd/trunk.hg/file/915aed927f42/src/train_cmd.cpp#l298)

Jump to: navigation, search

The speed a normal rail curve allows can be calculated using the following formula:

Maximum speed in km/h = 231 - (13-CL)^2
CL in the formula is limited to a maximum of 13.

For two curves in the same direction, CL is the number of half-tiles between the 45°-turns. If three or more curves are within the length of a train, the game calculates an average curve length based on the part of the train which is between those curves and the total number of total curves - 1. This can lead to strange effects: A third bend can increase the average curve length and allow a higher speed of the train.

Two 45°-turns with a single diagonal half-tile in between will always limit the speed to 88km/h, independent of other curves.

An example showing which corners are affected


Monorail and maglev use the same formula but get a 50% and 100% speed bonus respectively, resulting curve speeds are shown in the graph below. Tilt increases the maximal speed by 20%.

Curve speeds1.png


See Also

Powered by MediaWiki