This feature is supported as of BeamNG.tech and .drive version 0.8.0 to latest.
Energy storage is used to identify a tank of fuel, a set of batteries, or a tank of nitrous.
Used for fuel weight simulations.
All of the nodes in this group will gain equal amounts extra weight, totalling to the weight of the fuel in the tank.
"fuel": {"[engineGroup]:":["fuel"]},
The N2O tank is used along with the nitrous power adder.
Electric battery refers to the main power battery of electric cars.
Typical fuel tank. Note the variable used for the starting fuel capacity
"energyStorage": [
["type", "name"],
["fuelTank", "mainTank"],
],
"mainTank": {
"energyType":"gasoline",
"fuelCapacity": 45,
"startingFuelCapacity": "$fuel",
"fuel": {"[engineGroup]:":["fuel"]},
"breakTriggerBeam": "fuelTank",
},
10 pound nitrous bottle
"energyStorage": [
["type", "name"],
["n2oTank", "mainBottle"],
],
"mainBottle": {
"capacity": 4.54,
"startingCapacity": 4.54,
},
50 kWh battery
"energyStorage": [
["type", "name"],
["electricBattery", "mainBattery"],
],
"mainBattery": {
"energyType":"electricEnergy",
"batteryCapacity": 50,
"startingCapacity": "$fuel",
},