Prototype/Vehicle: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "== Basics == Abstract base of all vehicles. Extends Prototype/EntityWithHealth. == Mandatory properties == This prototype inherits all the properties from Prototype/Ent...")
 
(more description)
Line 8: Line 8:
'''Type''': [[Types/double]]
'''Type''': [[Types/double]]


Must be positive.
Must be positive.
Weight of the entity used for physics calculation when car hits something.


=== braking_power or braking_force ===
=== braking_power or braking_force ===

Revision as of 10:56, 22 September 2018

Basics

Abstract base of all vehicles. Extends Prototype/EntityWithHealth.

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

weight

Type: Types/double

Must be positive. Weight of the entity used for physics calculation when car hits something.

braking_power or braking_force

Type: Types/Energy or Types/double

Two different ways to set braking force. At least one must exist. Must be positive.

friction or friction_force

Type: Types/double

Two different ways to set friction force. At least one must exist. Must be positive.

energy_per_hit_point

Type: Types/double

Optional properties

terrain_friction_modifier

Type: Types/float

Default: 1

Must be in the [0, 1] interval.

sound_minimum_speed

Type: Types/double

Default: 1 / 60.0

Must be positive.

stop_trigger_speed

Type: Types/double

Default: 0.0

crash_trigger

Type: Types/TriggerEffect

stop_trigger

Type: Types/TriggerEffect

equipment_grid

Type: Types/string

The name of the equipment grid this vehicle has.