Prototype/RollingStock: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (wording)
m (as least -> at least)
Line 26: Line 26:
Maximum joint distance is 15.
Maximum joint distance is 15.


Note: There needs to be border at least 0.2 between the [[Prototype/Entity#collision_box|bounding box]] edge and joint. This means that the collision_box must be as least <nowiki>{{-0,-0.2},{0,0.2}}</nowiki>.
Note: There needs to be border at least 0.2 between the [[Prototype/Entity#collision_box|bounding box]] edge and joint. This means that the collision_box must be at least <nowiki>{{-0,-0.2},{0,0.2}}</nowiki>.


{{Prototype property|connection_distance|[[Types/double|double]]}}
{{Prototype property|connection_distance|[[Types/double|double]]}}

Revision as of 13:32, 24 October 2022

Template:Prototype parent The abstract base of all rolling stock.

Template:Prototype TOC

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/Vehicle.

Template:Prototype property Maximum speed of the rolling stock in tiles/tick.

In-game, the max speed of a train is min(all_rolling_stock_max_speeds) × average(all_fuel_modifiers_in_all_locomotives). This calculated train speed is then silently capped to 7386.3km/h.

Template:Prototype property

Template:Prototype property The length between this rolling stocks front and rear joints. Joints are the point where connection_distance is measured from when rolling stock are connected to one another. Wheels sprite are placed based on the joint position.

Maximum joint distance is 15.

Note: There needs to be border at least 0.2 between the bounding box edge and joint. This means that the collision_box must be at least {{-0,-0.2},{0,0.2}}.

Template:Prototype property The distance between the joint of this rolling stock and its connected rolling stocks joint.

Template:Prototype property

Template:Prototype property

Optional properties

Template:Prototype property Usually a sound to play when the rolling stock drives over a tie. The rolling stock is considered to be driving over a tie every tie_distance tiles.

Template:Prototype property In tiles. Used to determine how often drive_over_tie_trigger is triggered.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property