-
Notifications
You must be signed in to change notification settings - Fork 2
Vehicles
lexag edited this page Jul 25, 2024
·
4 revisions
Vehicles are the OpenTrainER representation of any kind of rolling stock (locomotive, train carriage, multiple unit, tender, caboose, etc.). Vehicles are constructed in a modular fashion using Vehicle Components defined in a json file.
Vehicle files are placed in Documents/OpenTrainER/vehicles.
<vehicle-name>.json
{
"name": "test_vehicle",
"components": {
"VehiclePhysicsComponent": {
...
},
"ElectricDriverComponent": {
...
},
"KeyboardInputComponent": {
...
}
...
}
}Each vehicle component has its own settings (see Vehicle Components). Every vehicle needs at least a VehiclePhysicsComponent and some DriverComponent.