{
"survolt_motor_electric_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Electric Motor",
        "value":29500,
    },
    "slotType" : "survolt_motor_electric_R",
    "slots": [
        ["type", "default", "description"],
        ["survolt_differential_R_electric","survolt_differential_R_electric", "Rear Differential"],
    ],
    "powertrain": [
        ["type", "name", "inputName", "inputIndex"],
        ["electricMotor", "rearMotor", "dummy", 0],
    ],
    "rearMotor":{
        "torque":[
            ["rpm", "torque"],
            [0, 550],
            [500, 550],
            [1000, 550],
            [1500, 550],
            [2000, 550],
            [3000, 550],
            [4000, 550],
            [5000, 550],
            [6000, 490],
            [7000, 422],
            [8000, 355],
            [9000, 305],
            [10000, 250],
            [11000, 190],
            [12000, 140],
            [13000, 105],
            [14000, 80],
            [15000, 65],
            [16000, 55],
        ],

        "maxRPM":16000,
        "maxRegenPower":150,
        "maxRegenTorque":100,
        "inertia":0.10,
        "friction":2,
        "dynamicFriction":0.0005,
        "electricalEfficiency":0.95,
        "torqueReactionNodes:":["rem1l","rem1r","rem4r"],
        "energyStorage": "mainBattery",
        "electricsThrottleFactorName": "throttleFactorRear",

        //node beam interface
        "waterDamage": {"[engineGroup]:":["rear_motor_waterdamage"]},
        "engineBlock": {"[engineGroup]:":["rear_motor_block"]},
        "breakTriggerBeam":"rear_motor",
        "uiName":"Rear Motor",



        "soundConfig": "soundConfigRear",
    },
    "soundConfigRear": {
        "sampleName": "ElectricMotor_04",
        "mainGain": 9.5,
        //"maxLoadMix": 0.65,
        //"minLoadMix": 0,
        //"onLoadGain":1,
        //"offLoadGain":0.65,
        //"eqLowGain": -15,
        //"eqLowFreq": 100,
        //"eqLowWidth": 0.05,
        //"eqHighGain": -5,
        //"eqHighFreq": 6000,
        //"eqHighWidth": 0.1,
        //"eqFundamentalGain": -5,
    },
    "vehicleController": {
        "shiftLogicName":"electricMotor",
        "motorNames": ["rearMotor", "frontMotor"],
        "topSpeedLimitReverse": 15,
        "onePedalRegenCoef": 0.85,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["survolt_emotor_R", ["survolt_rear_motor"]],
         ["survolt_emotor_large_mount", ["survolt_rear_motor"]],
         ["survolt_emotor_large_support", ["survolt_subframe_R","survolt_lowermounts_R","survolt_uppermounts_R"]],
         ["survolt_wiring_emotor_b", ["survolt_body"]],
         ["survolt_ecu_R", ["survolt_body"]],
         ["survolt_wiring_battery_R", ["survolt_body"]],
         //["survolt_trunk", ["survolt_body"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":false},
         {"collision":true},
         {"group":"survolt_rear_motor"},
         {"engineGroup":"rear_motor_block"},
         {"nodeWeight":10},
         {"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.15},
         ["rem1r", -0.38000, 1.20314, 0.26000],
         ["rem1l", 0.38000, 1.20314, 0.26000],
         ["rem2r", -0.38000, 1.40314, 0.26000],
         ["rem2l", 0.38000, 1.40314, 0.26000],
         {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false},
         {"engineGroup":["rear_motor_block","rear_motor_waterdamage"]},
         ["rem3r", -0.38000, 1.20314, 0.47000],
         ["rem3l", 0.38000, 1.20314, 0.47000],
         ["rem4r", -0.38000, 1.40314, 0.47000],
         ["rem4l", 0.38000, 1.40314, 0.47000],
         {"engineGroup":""},
         {"nodeWeight":4},
         ["rem5r", -0.21000, 1.43814, 0.22500],
         ["rem5l", 0.21000, 1.43814, 0.22500],
         {"selfCollision":false},
         {"collision":true},
         {"group":"survolt_transaxle"},
         {"nodeWeight":10},
         ["tra1", 0.00000, 0.94314, 0.19000],
         {"nodeWeight":40},
         {"group":["rear_motor_block","survolt_reardiff"]},
         ["rem6", 0.00000, 1.26314, 0.34000],
         {"engineGroup":""},
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":5001000,"beamDamp":500},
          {"beamDeform":100000,"beamStrength":"FLT_MAX"},
          //engine
          ["rem1r","rem1l"],
          ["rem2r","rem2l"],
          ["rem3r","rem3l"],
          ["rem4r","rem4l"],

          ["rem1r","rem2r"],
          ["rem1l","rem2l"],
          ["rem3r","rem4r"],
          ["rem3l","rem4l"],

          ["rem1r","rem3r"],
          ["rem1l","rem3l"],
          ["rem2r","rem4r"],
          ["rem2l","rem4l"],

          ["rem2r","rem3r"],
          ["rem2l","rem3l"],
          ["rem2r","rem3l"],
          ["rem2l","rem3r"],

          ["rem1r","rem4r"],
          ["rem1l","rem4l"],
          ["rem1r","rem4l"],
          ["rem1l","rem4r"],

          ["rem1r","rem2l"],
          ["rem1l","rem2r"],
          ["rem3r","rem4l"],
          ["rem3l","rem4r"],

          ["rem1r","rem3l"],
          ["rem1l","rem3r"],
          ["rem2r","rem4l"],
          ["rem2l","rem4r"],

          {"beamSpring":3751000,"beamDamp":250},
          ["rem5l", "rem5r"],
          ["rem5l", "rem2l"],
          ["rem5r", "rem2r"],
          ["rem5l", "rem2r"],
          ["rem5r", "rem2l"],
          ["rem5l", "rem1l"],
          ["rem5r", "rem1r"],
          //["rem5l", "tra2"],
          //["rem5r", "tra2"],
          ["rem5r", "rem4r"],
          ["rem5l", "rem4l"],
          ["rem5l", "rem4r"],
          ["rem5r", "rem4l"],

          ["rem6", "rdiff", {"optional":true}],
          ["rem6", "rem1l"],
          ["rem6", "rem3l"],
          ["rem6", "rem1r"],
          ["rem6", "rem3r"],
          ["rem6", "rem2l"],
          ["rem6", "rem4l"],
          ["rem6", "rem2r"],
          ["rem6", "rem4r"],

          //--TRANSMISSION CONE--
          {"beamSpring":5001000,"beamDamp":250},
          {"beamDeform":75000,"beamStrength":"FLT_MAX"},
          ["tra1","rem1r"],
          ["tra1","rem3r"],
          ["tra1","rem1l"],
          ["tra1","rem3l"],

          //motor and transaxle mounting
          {"optional":true},
          {"beamDeform":14000,"beamStrength":90000},
          {"beamSpring":501000,"beamDamp":1000},
          ["rem5l", "rx2l", {"dampCutoffHz":500}],
          ["rem5l", "rx5l", {"dampCutoffHz":500}],
          ["rem5l", "r2ll", {"name":"rear_motor","beamStrength":50000,"disableMeshBreaking":true,"disableTriangleBreaking":true}],
          ["rem5l", "r5ll"],
          ["rem5l", "r2rr"],
          ["rem5l", "r5rr"],
          ["rem5l", "r1"],
          ["rem5l", "rx1", {"dampCutoffHz":500}],

          ["rem5r", "rx2r", {"dampCutoffHz":500}],
          ["rem5r", "rx5r", {"dampCutoffHz":500}],
          ["rem5r", "r2rr", {"name":"rear_motor","beamStrength":50000,"disableMeshBreaking":true,"disableTriangleBreaking":true}],
          ["rem5r", "r5rr"],
          ["rem5r", "r2ll"],
          ["rem5r", "r5ll"],
          ["rem5r", "r1"],
          ["rem5r", "rx1", {"dampCutoffHz":500}],

            ["rem1l", "rx3l"],
            ["rem2l", "rx4l"],
            ["rem5l", "rx9l"],
            ["rem1l", "rx8l"],
            ["rem3l", "f9l"],
            ["rem3l", "f9r"],
            ["rem3l", "rx8l"],
            ["rem4l", "rx9l"],
            ["rem4l", "rx4l"],
            ["rem4l", "rpu1l"],
            ["rem4l", "rp2l"],
            ["rem4l", "rp2ll"],

            ["rem1r", "rx3r"],
            ["rem2r", "rx4r"],
            ["rem5r", "rx9r"],
            ["rem1r", "rx8r"],
            ["rem3r", "f9r"],
            ["rem3r", "f9r"],
            ["rem3r", "rx8r"],
            ["rem4r", "rx9r"],
            ["rem4r", "rx4r"],
            ["rem4r", "rpu1r"],
            ["rem4r", "rp2r"],
            ["rem4r", "rp2rr"]

          {"beamSpring":501000,"beamDamp":500},
          //transmission soft mounts
          ["tra1","f9r"],
          ["tra1","f9l"],
          ["tra1","f4r"],
          ["tra1","f4l"],
          ["tra1","r1"],

          ["tra1", "rx1l", {"dampCutoffHz":500}],
          ["tra1", "rx1r", {"dampCutoffHz":500}],

          //engine limiters
          {"beamPrecompression":1, "beamType":"|SUPPORT", "beamLongBound":1.0},
          {"beamSpring":2501000,"beamDamp":150,"beamDeform":250000,"beamStrength":"FLT_MAX"},
          {"beamPrecompression":0.9},
          //upper limiter
          ["rem2r", "tb1"],
          ["rem2l", "tb1"],
          ["rem1l", "r1"],
          ["rem1r", "r1"],

          //rear body to engine
          {"beamPrecompression":0.7},
          ["r6", "e1r"],
          ["r6", "e1l"],
          ["r3", "e3r"],
          ["r3", "e3l"],

          //side to engine
          {"beamPrecompression":0.8},
          ["r2rr", "e3l"],
          ["r2rr", "e4l"],
          ["r2ll", "e3r"],
          ["r2ll", "e4r"],

          //front body to engine
          {"beamSpring":5001000,"beamDamp":150,"beamDeform":"FLT_MAX","beamStrength":"FLT_MAX"},
          {"beamPrecompression":0.95},
          ["f4l", "e4r"],
          ["f4r", "e4l"],
          //{"beamPrecompression":0.9},
          ["e2l", "f9r"],
          ["e2r", "f9l"],

          //transmission limiter
          {"beamSpring":2501000,"beamDamp":150,"beamDeform":250000,"beamStrength":"FLT_MAX"},
          {"beamPrecompression":0.95},
          ["tra1", "f9r"],
          ["tra1", "f9l"],
          ["tra1", "f4r"],
          ["tra1", "f4l"],
          ["tra1", "q3r"],
          ["tra1", "q3l"],
          {"beamPrecompression":0.8},
          ["tra1", "r1"],
          {"beamPrecompression":1},
          {"optional":false},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"survolt_motor_electric_F": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Electric Motor",
        "value":15000,
    },
    "slotType" : "survolt_motor_electric_F",
    "slots": [
        ["type", "default", "description"],
        ["survolt_differential_F_electric","survolt_differential_F_electric", "Front Differential"],
    ],
    "powertrain": [
        ["type", "name", "inputName", "inputIndex"],
        ["electricMotor", "frontMotor", "dummy", 0],
    ],
    "frontMotor":{
        "torque":[
            ["rpm", "torque"],
            [0, 320],
            [500, 320],
            [1000, 320],
            [1500, 320],
            [2000, 320],
            [3000, 320],
            [4000, 320],
            [5000, 320],
            [6000, 320],
            [7000, 290],
            [8000, 260],
            [9000, 237],
            [10000, 210],
            [11000, 180],
            [12000, 160],
            [13000, 145],
            [14000, 135],
            [15000, 127],
            [16000, 121],
        ],

        "maxRPM":16000,
        "maxRegenPower":100,
        "maxRegenTorque":100,
        "inertia":0.10,
        "friction":1,
        "dynamicFriction":0.0003,
        "electricalEfficiency":0.95,
        "torqueReactionNodes:":["fem1l","fem1r","fem4r"],
        "energyStorage": "mainBattery",
        "electricsThrottleFactorName": "throttleFactorFront",

        //node beam interface
        "waterDamage": {"[engineGroup]:":["front_motor_waterdamage"]},
        "engineBlock": {"[engineGroup]:":["front_motor_block"]},
        "breakTriggerBeam":"front_motor",
        "uiName":"Front Motor",

        "soundConfig": "soundConfigFront",
    },
    "soundConfigFront": {
        "sampleName": "ElectricMotor_04",
        "mainGain": -4,
        //"maxLoadMix": 0.65,
        //"minLoadMix": 0,
        //"onLoadGain":1,
        //"offLoadGain":0.65,
        //"eqLowGain": -15,
        //"eqLowFreq": 100,
        //"eqLowWidth": 0.05,
        //"eqHighGain": -5,
        //"eqHighFreq": 6000,
        //"eqHighWidth": 0.1,
        //"eqFundamentalGain": -5,
    },
    "vehicleController": {
        "shiftLogicName":"electricMotor",
        "motorNames": ["rearMotor", "frontMotor"],
        "topSpeedLimitReverse": 15,
        "onePedalRegenCoef": 0.85,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["survolt_emotor_F", ["survolt_front_motor"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":false},
         {"collision":true},
         {"group":"survolt_front_motor"},
         {"engineGroup":"front_motor_block"},
         {"nodeWeight":7.75},
         {"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.15},
         ["fem1r", -0.16000, -1.48000, 0.20000],
         ["fem1l", 0.16000, -1.48000, 0.20000],
         ["fem2r", -0.16000, -1.32000, 0.20000],
         ["fem2l", 0.16000, -1.32000, 0.20000],
         {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false},
         {"engineGroup":["front_motor_block","front_motor_waterdamage"]},
         ["fem3r", -0.16000, -1.48000, 0.35000],
         ["fem3l", 0.16000, -1.48000, 0.35000],
         ["fem4r", -0.16000, -1.32000, 0.35000],
         ["fem4l", 0.16000, -1.32000, 0.35000],
         {"engineGroup":""},
         {"nodeWeight":3.5},
         ["fem5r", -0.21000, -1.33000, 0.33500],
         ["fem5l", 0.21000, -1.33000, 0.33500],
         {"group":["survolt_front_motor","survolt_frontdiff"]},
         ["fem6", 0.00000, -1.53000, 0.23500],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":3751000,"beamDamp":250},
          {"beamDeform":100000,"beamStrength":"FLT_MAX"},
          //engine
          ["fem1r","fem1l"],
          ["fem2r","fem2l"],
          ["fem3r","fem3l"],
          ["fem4r","fem4l"],

          ["fem1r","fem2r"],
          ["fem1l","fem2l"],
          ["fem3r","fem4r"],
          ["fem3l","fem4l"],

          ["fem1r","fem3r"],
          ["fem1l","fem3l"],
          ["fem2r","fem4r"],
          ["fem2l","fem4l"],

          ["fem2r","fem3r"],
          ["fem2l","fem3l"],
          ["fem2r","fem3l"],
          ["fem2l","fem3r"],

          ["fem1r","fem4r"],
          ["fem1l","fem4l"],
          ["fem1r","fem4l"],
          ["fem1l","fem4r"],

          ["fem1r","fem2l"],
          ["fem1l","fem2r"],
          ["fem3r","fem4l"],
          ["fem3l","fem4r"],

          ["fem1r","fem3l"],
          ["fem1l","fem3r"],
          ["fem2r","fem4l"],
          ["fem2l","fem4r"],

          {"beamSpring":2501000,"beamDamp":100},
          ["fem6", "fem1l"],
          ["fem6", "fem1r"],
          ["fem6", "fem3r"],
          ["fem6", "fem3l"],
          ["fem6", "fem2l"],
          ["fem6", "fem2r"],
          ["fem6", "fem4r"],
          ["fem6", "fem4l"],

          ["fem5l", "fem4l"],
          ["fem5l", "fem2l"],
          ["fem5l", "fem4r"],
          ["fem5l", "fem2r"],
          ["fem5l", "fem3l"],
          ["fem5l", "fem1l"],

          ["fem5r", "fem4r"],
          ["fem5r", "fem2r"],
          ["fem5r", "fem4l"],
          ["fem5r", "fem2l"],
          ["fem5r", "fem3r"],
          ["fem5r", "fem1r"],

          //motor mounts
          {"beamSpring":2501000,"beamDamp":500},
          {"beamDeform":17000,"beamStrength":90000},
          ["fem5r", "fx3r", {"name":"front_motor","beamStrength":50000,"disableMeshBreaking":true,"disableTriangleBreaking":true}],
          ["fem5r", "fx2r"],
          ["fem5r", "fx1r"],
          ["fem5r", "f10rr"],
          ["fem5r", "f12rr"],
          ["fem5r", "fx5r"],

          ["fem5l", "fx3l", {"name":"front_motor","beamStrength":50000,"disableMeshBreaking":true,"disableTriangleBreaking":true}],
          ["fem5l", "fx2l"],
          ["fem5l", "fx1l"],
          ["fem5l", "f10ll"],
          ["fem5l", "f12ll"],
          ["fem5l", "fx5l"],

          ["fem6", "fx3r"],
          ["fem6", "fx3l"],
          ["fem6", "fx1r"],
          ["fem6", "fx1l"],
          ["fem6", "fx2l"],
          ["fem6", "fx2r"],

          {"beamSpring":501000,"beamDamp":2500},
          {"beamDeform":14000,"beamStrength":"FLT_MAX"},
          ["fem3r", "f1r"],
          ["fem3r", "fx1l"],
          ["fem3l", "f1l"],
          ["fem3l", "fx1r"],

          //break wiring
          {"beamSpring":14100,"beamDamp":0},
          {"beamDeform":1315.85,"beamStrength":3096.05},
          {"breakGroup":"wiring_emotor_a"},
          {"deformGroup":"wiring_emotor_a_break"},
          {"optional":true},
          ["fem3l","f5r"],
          ["fem3r","f5l"],
          {"optional":false},
          {"deformGroup":""},
          {"breakGroup":""},

    ],
},
"survolt_differential_R_electric": {
    "information":{
        "authors":"BeamNG",
        "name":"Open Rear Differential",
        "value":450,
    },
    "slotType" : "survolt_differential_R_electric",
    "slots": [
        ["type", "default", "description"],
        ["survolt_finaldrive_electric_R","survolt_finaldrive_electric_R_76", "Rear Final Drive", {"coreSlot":true}],
        ["survolt_halfshafts_electric_R","survolt_halfshafts_electric_R", "Rear Halfshafts"],
    ],
    "controller": [
        ["fileName"],
        ["drivingDynamics/actuators/electronicDiffLock" {"name":"lockRear", "differentialName":"differential_R"}]
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "rearMotor", 1, {"diffType":"open", "uiName":"Rear Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_R": {
        "friction": 1.9,
        "dynamicFriction": 0.0012,
        "torqueLossCoef": 0.017,
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":false},
         {"collision":true},
         {"group":"survolt_reardiff"},
         {"nodeWeight":35},
         ["rdiff", 0.00000, 1.30000, 0.25000],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":7700550,"beamDamp":125},
          {"beamDeform":660000,"beamStrength":"FLT_MAX"},
          //differential
          ["rdiff","rem1r"],
          ["rdiff","rem3r"],
          ["rdiff","rem1l"],
          ["rdiff","rem3l"],
          ["rdiff","tra1"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"survolt_differential_R_electric_welded": {
    "information":{
        "authors":"BeamNG",
        "name":"Welded Rear Differential",
        "value":500,
    },
    "slotType" : "survolt_differential_R_electric",
    "slots": [
        ["type", "default", "description"],
        ["survolt_finaldrive_electric_R","survolt_finaldrive_electric_R_76", "Rear Final Drive", {"coreSlot":true}],
        ["survolt_halfshafts_electric_R","survolt_halfshafts_electric_R", "Rear Halfshafts"],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "rearMotor", 1, {"diffType":"locked", "lockTorque":10000, "friction":8, "uiName":"Rear Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_R": {
        "friction": 1.9,
        "dynamicFriction": 0.0012,
        "torqueLossCoef": 0.017,
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":false},
         {"collision":true},
         {"group":"survolt_reardiff"},
         {"nodeWeight":35},
         ["rdiff", 0.0, 1.30, 0.25],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":7700550,"beamDamp":125},
          {"beamDeform":660000,"beamStrength":"FLT_MAX"},
          //differential
          ["rdiff","rem1r"],
          ["rdiff","rem3r"],
          ["rdiff","rem1l"],
          ["rdiff","rem3l"],
          ["rdiff","tra1"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"survolt_finaldrive_electric_R_76": {
    "information":{
        "authors":"BeamNG",
        "name":"7.6:1 Rear Final Drive",
        "value":250,
    },

    "slotType" : "survolt_finaldrive_electric_R",

    "differential_R" : {
        "gearRatio":7.6,
    },
},
"survolt_finaldrive_electric_R_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Race Adjustable Rear Final Drive",
        "value":250,
    },

    "slotType" : "survolt_finaldrive_electric_R",

    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$finaldrive_R", "range", ":1", "Differentials", 7.6, 4.0, 10.0, "Final Drive Gear Ratio", "Torque multiplication ratio", {"subCategory":"Rear", "stepDis":0.01}],
    ],

    "differential_R" : {
        "gearRatio":"$finaldrive_R",
    },
},
"survolt_halfshafts_electric_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Halfshafts",
        "value":200,
    },
    "slotType" : "survolt_halfshafts_electric_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"wheelaxleRR", "deformMaterialBase":"survolt_engine", "deformMaterialDamaged":"invis"},
        ["survolt_halfshaft_RR", ["survolt_reardiff","survolt_upperarm_R","survolt_lowerarm_R"]],
        {"deformGroup":"wheelaxleRL", "deformMaterialBase":"survolt_engine", "deformMaterialDamaged":"invis"},
        ["survolt_halfshaft_RL", ["survolt_reardiff","survolt_upperarm_R","survolt_lowerarm_R"]],
        {"deformGroup":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

          //halfshafts
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.02, "beamShortBound":0.02},
          {"beamSpring":0,"beamDamp":0,"beamDeform":3600,"beamStrength":9500},
          {"beamLimitSpring":7501000,"beamLimitDamp":250},
          ["rw1r","rdiff", {"name":"halfshaft_RR", "breakGroup":"wheel_RR", "breakGroupType":1, "deformGroup":"wheelaxleRR", "deformationTriggerRatio":0.001, "optional":true}],
          ["rw1l","rdiff", {"name":"halfshaft_RL", "breakGroup":"wheel_RL", "breakGroupType":1, "deformGroup":"wheelaxleRL", "deformationTriggerRatio":0.001, "optional":true}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["shaft", "wheelaxleRL", "differential_R", 1, {"deformGroups":["wheelaxleRL"], "breakTriggerBeam":"halfshaft_RL", "uiName":"Rear Left Halfshaft", "friction":1.29, "dynamicFriction":0.0017}],
        ["shaft", "wheelaxleRR", "differential_R", 2, {"deformGroups":["wheelaxleRR"], "breakTriggerBeam":"halfshaft_RR", "uiName":"Rear Right Halfshaft", "friction":1.29, "dynamicFriction":0.0017}],
    ],
},
"survolt_differential_F_electric": {
    "information":{
        "authors":"BeamNG",
        "name":"Open Front Differential",
        "value":900,
    },
    "slotType" : "survolt_differential_F_electric",
    "slots": [
        ["type", "default", "description"],
        ["survolt_finaldrive_electric_F","survolt_finaldrive_electric_F_76", "Front Final Drive", {"coreSlot":true}],
        ["survolt_halfshafts_electric_F","survolt_halfshafts_electric_F", "Front Halfshafts"],
    ],
    "controller": [
        ["fileName"],
        ["drivingDynamics/actuators/electronicDiffLock" {"name":"lockFront", "differentialName":"differential_F"}]
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["torsionReactor", "torsionReactorF", "frontMotor", 1],
        ["differential", "differential_F", "torsionReactorF", 1, {"diffType":"open", "friction":8, "uiName":"Front Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_F": {
        "friction": 1.7,
        "dynamicFriction": 0.001,
        "torqueLossCoef": 0.017,
    },
    "torsionReactorF": {
        "torqueReactionNodes:":["fdiffl","fdiffr","fem6"],
    },
     "props": [
        ["func"      , "mesh"           , "idRef:", "idX:", "idY:", "baseRotation"        , "rotation"            , "translation"        , "min", "max", "offset", "multiplier",],
        ["wheelaxleFR", "survolt_emotor_small_shaft", "fdiffl", "fdiffr", "fem4l",    {"x":0, "y":0, "z":0}, {"x":-1, "y":0, "z":0} , {"x":0, "y":0, "z":0}, -360, 360, 0, 1,{"breakGroup":"wheel_FR","deformGroup":"wheel_FR","optional":true}],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--front motor weight
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":"survolt_frontdiff"},
         {"nodeWeight":14},
         ["fdiffr", -0.15000, -1.25000, 0.27500],
         ["fdiffl", 0.15000, -1.25000, 0.27500],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //differential
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":2001000,"beamDamp":100},
          {"beamDeform":12000,"beamStrength":"FLT_MAX"},

          ["fdiffl","fdiffr"],

          ["fdiffl", "fem4l"],
          ["fdiffl", "fem2l"],
          ["fdiffr", "fem4r"],
          ["fdiffr", "fem2r"],
          ["fdiffr", "fem4l"],
          ["fdiffr", "fem2l"],
          ["fdiffl", "fem4r"],
          ["fdiffl", "fem2r"],
          {"beamSpring":101000,"beamDamp":1000},
          ["fdiffr", "fx4r"],
          ["fdiffr", "fx3r"],
          ["fdiffl", "fx4l"],
          ["fdiffl", "fx3l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"survolt_finaldrive_electric_F_76": {
    "information":{
        "authors":"BeamNG",
        "name":"7.6:1 Front Final Drive",
        "value":250,
    },

    "slotType" : "survolt_finaldrive_electric_F",

    "torsionReactorF" : {
        "gearRatio":7.6,
    },
},
"survolt_finaldrive_electric_F_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Race Adjustable Front Final Drive",
        "value":250,
    },

    "slotType" : "survolt_finaldrive_electric_F",

    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$finaldrive_F", "range", ":1", "Differentials", 7.6, 4.0, 10.0, "Final Drive Gear Ratio", "Torque multiplication ratio", {"subCategory":"Front", "stepDis":0.01}],
    ],

    "torsionReactorF" : {
        "gearRatio":"$finaldrive_F",
    },
},
"survolt_halfshafts_electric_F": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Halfshafts",
        "value":200,
    },
    "slotType" : "survolt_halfshafts_electric_F",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["survolt_halfshaft_F", ["survolt_frontdiff","survolt_hub_F","survolt_tierod_F","survolt_lowerarm_F","survolt_upperarm_F", "wheelhub_FR","wheelhub_FL"]],
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

          //halfshafts
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.04, "beamShortBound":0.04},
          {"beamSpring":0,"beamDamp":0,"beamDeform":3600,"beamStrength":9500},
          {"beamLimitSpring":7501000,"beamLimitDamp":300},
          ["fw1r","fdiffr", {"name":"halfshaft_FR", "breakGroup":"wheel_FR", "breakGroupType":1, "deformGroup":"wheelaxleFR", "deformationTriggerRatio":0.001, "optional":true}],
          ["fw1l","fdiffl", {"name":"halfshaft_FL", "breakGroup":"wheel_FL", "breakGroupType":1, "deformGroup":"wheelaxleFL", "deformationTriggerRatio":0.001, "optional":true}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["shaft", "wheelaxleFL", "differential_F", 1, {"deformGroups":["wheelaxleFL"], "breakTriggerBeam":"halfshaft_FL", "uiName":"Front Left Halfshaft", "friction":1.2, "dynamicFriction":0.0015}],
        ["shaft", "wheelaxleFR", "differential_F", 2, {"deformGroups":["wheelaxleFR"], "breakTriggerBeam":"halfshaft_FR", "uiName":"Front Right Halfshaft", "friction":1.2, "dynamicFriction":0.0015}],
    ],
},
}