Prototype/Rail: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Hardcoded bounding boxes)
(Set prototype parent)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithHealth}}
== Basics ==
== Basics ==
This type is abstract and cannot be created directly.
This type is abstract and cannot be created directly.

Revision as of 15:52, 24 July 2019

Template:Prototype parent

Basics

This type is abstract and cannot be created directly.

The base of both rail prototypes. Extends Prototype/EntityWithHealth.

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

pictures

Type: Types/table

Table with the following mandatory members:

Mandatory values

All rail collision_boxes are hardcoded and cannot be modified. The hardcoded values are:

  • straight_rail_primary_bounding_box = {-0.7, -0.99, 0.7, 0.99}
  • diagonal_straight_rail_primary_bounding_box = {-0.65, -0.7, 0.65, 0.7}
  • curved_rail_primary_bounding_box = {-0.75, -0.55, 0.75, 1.6}
  • secondary_bounding_box = {-0.68, -2.7, 0.68, 2.7}