Prototype/Vehicle: Difference between revisions
(more description) |
(added extensions) |
||
Line 1: | Line 1: | ||
== Basics == | == Basics == | ||
Abstract base of all vehicles. Extends [[Prototype/EntityWithHealth]]. | Abstract base of all vehicles. Extends [[Prototype/EntityWithHealth]]. | ||
== Extensions == | |||
* [[Prototype/Car]] '''car''' | |||
* [[Prototype/RollingStock]] <abstract> | |||
** [[Prototype/ArtilleryWagon]] '''artillery-wagon''' | |||
** [[Prototype/CargoWagon]] '''cargo-wagon''' | |||
** [[Prototype/FluidWagon]] '''fluid-wagon''' | |||
** [[Prototype/Locomotive]] '''locomotive''' | |||
== Mandatory properties == | == Mandatory properties == |
Revision as of 15:15, 21 January 2019
Basics
Abstract base of all vehicles. Extends Prototype/EntityWithHealth.
Extensions
- Prototype/Car car
- Prototype/RollingStock <abstract>
- Prototype/ArtilleryWagon artillery-wagon
- Prototype/CargoWagon cargo-wagon
- Prototype/FluidWagon fluid-wagon
- Prototype/Locomotive locomotive
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.