{
"revuelto_differential_F_hybrid": {
    "information":{
        "authors":"BeamNG",
        "name":"Open Front Differential",
        "value":900,
    },
    "slotType" : "revuelto_differential_F_hybrid",
    "slots": [
        ["type", "default", "description"],
        ["revuelto_finaldrive_electric_F","revuelto_finaldrive_electric_F_794", "Front Final Drive", {"coreSlot":true}],
        ["revuelto_halfshaft_F_electric","revuelto_halfshaft_F_electric", "Front Half Shafts"],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        //["differential", "differential_F", "frontMotor", 1, {"diffType":"open", "friction":8, "uiName":"Front Differential","defaultVirtualInertia":0.25}],
        ["differential", "differential_F", "frontMotor", 1, {"deformGroups":["differential_F"], "diffType":"torqueVectoring", "gearRatio": 1, "uiName":"Front Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_F": {
        "friction": 2.904,
        "dynamicFriction": 0.00128,
        "torqueLossCoef": 0.016,
    },
    "torsionReactorF": {
        "torqueReactionNodes:":["fdiffl","fdiffr","fem6"],
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--front motor weight
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":"revuelto_frontdiff"},
         {"nodeWeight":14},
         //["fdiffr", -0.23650, -1.32168, 0.23346],
         //["fdiffl", 0.23650, -1.32168, 0.23346],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //differential
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":2001000,"beamDamp":100},
          {"beamDeform":12000,"beamStrength":"FLT_MAX"},
          ["fdiffr", "fem1l"],
          ["fdiffr", "fem2l"],
          ["fdiffr", "fem3l"],
          ["fdiffr", "fem4l"],
          ["fdiffr", "fem1r"],
          ["fdiffr", "fem2r"],
          ["fdiffr", "fem3r"],
          ["fdiffr", "fem4r"],

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

          ["fdiffl", "fem6"],
          ["fdiffr", "fem6"],
          ["fdiffr", "fdiffl"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"revuelto_finaldrive_electric_F_794": {
    "information":{
        "authors":"BeamNG",
        "name":"7.94:1 Front Final Drive",
        "value":150,
    },

    "slotType" : "revuelto_finaldrive_electric_F",

    "torsionReactorF" : {
        "gearRatio":7.94,
    },
},
"revuelto_finaldrive_electric_F_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Race Adjustable Front Final Drive",
        "value":150,
    },

    "slotType" : "revuelto_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",
    },
},
"revuelto_finaldrive_electric_F_drag": {
    "information":{
        "authors":"BeamNG",
        "name":"Drag Adjustable Front Final Drive",
        "value":150,
    },

    "slotType" : "revuelto_finaldrive_electric_F",

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

    "torsionReactorF" : {
        "gearRatio":"$finaldrive_F",
    },
},
"revuelto_halfshaft_F_electric": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Half Shafts",
        "value":200,
    },
    "slotType" : "revuelto_halfshaft_F_electric",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         // ["revuelto_halfshaft_EV_F", ["revuelto_hub_F","revuelto_frontdiff","wheelhub_FR","wheelhub_FL","revuelto_shockbottom_F"]],
    ],
    "beams": [
          ["id1:", "id2:"],
          //halfshafts
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.11, "beamShortBound":0.11},
          {"beamSpring":0,"beamDamp":0,"beamDeform":3240,"beamStrength":9550},
          {"beamLimitSpring":7501000,"beamLimitDamp":300},
          {"optional":true},
          {"breakGroupType":1},
          ["fw1r","fdiffr", {"name":"axle_FR", "breakGroup":"wheel_FR", "deformGroup":"wheelaxleFR", "deformationTriggerRatio":0.001}],
          ["fw1l","fdiffl", {"name":"axle_FL", "breakGroup":"wheel_FL", "deformGroup":"wheelaxleFL", "deformationTriggerRatio":0.001}],
          {"breakGroup":""},
          {"optional":false},
          {"breakGroupType":0},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["shaft", "wheelaxleFL", "differential_F", 1, {"deformGroups":["wheelaxleFL"], "breakTriggerBeam":"axle_FL", "uiName":"Front Left Axle", "friction":1.54, "dynamicFriction":0.0038}],
        ["shaft", "wheelaxleFR", "differential_F", 2, {"deformGroups":["wheelaxleFR"], "breakTriggerBeam":"axle_FR", "uiName":"Front Right Axle", "friction":1.54, "dynamicFriction":0.0038}],
    ],
},
"revuelto_differential_R_electric": {
    "information":{
        "authors":"BeamNG",
        "name":"Open Rear Differential",
        "value":650,
    },
    "slotType" : "revuelto_differential_R_electric",
    "slots": [
        ["type", "default", "description"],
        ["revuelto_finaldrive_electric_R","revuelto_finaldrive_electric_R_794", "Rear Final Drive", {"coreSlot":true}],
        ["revuelto_halfshaft_R_electric","revuelto_halfshaft_R_electric", "Rear Half Shafts"],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "rearMotor", 1, {"diffType":"open", "friction":8, "uiName":"Rear Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_R": {
        "friction": 2.904,
        "dynamicFriction": 0.00128,
        "torqueLossCoef": 0.016,
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":false},
         {"collision":true},
         {"group":""},
         {"nodeWeight":12.5},
         ["rdiffr", 0.03629, 1.23539, 0.61878],
         ["rdiffl", 0.03629, 1.03539, 0.61878],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":1001000,"beamDamp":50},
          {"beamDeform":12000,"beamStrength":"FLT_MAX"},
          //differential
          ["rdiffr", "rem2r"],
          ["rdiffr", "rem1r"],
          ["rdiffr", "rem4r"],
          ["rdiffr", "rem3r"],
          ["rdiffr", "rem2l"],
          ["rdiffr", "rem1l"],
          ["rdiffr", "rem4l"],
          ["rdiffr", "rem3l"],

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

          ["rdiffl", "rdiffr"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"revuelto_finaldrive_electric_R_794": {
    "information":{
        "authors":"BeamNG",
        "name":"7.94:1 Rear Final Drive",
        "value":150,
    },

    "slotType" : "revuelto_finaldrive_electric_R",

    "differential_R" : {
        "gearRatio":7.94,
    },
},
"revuelto_finaldrive_electric_R_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Race Adjustable Rear Final Drive",
        "value":150,
    },

    "slotType" : "revuelto_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",
    },
},
"revuelto_finaldrive_electric_R_drag": {
    "information":{
        "authors":"BeamNG",
        "name":"Drag Adjustable Rear Final Drive",
        "value":150,
    },

    "slotType" : "revuelto_finaldrive_electric_R",

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

    "differential_R" : {
        "gearRatio":"$finaldrive_R",
    },
},
"revuelto_halfshaft_R_electric": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Half Shafts",
        "value":200,
    },
    "slotType" : "revuelto_halfshaft_R_electric",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         // ["revuelto_halfshaft_EV_R", ["revuelto_halfshaft_R","revuelto_hub_R"]],
    ],
    "beams": [
          ["id1:", "id2:"],
          //halfshafts
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.05, "beamShortBound":0.05},
          {"beamSpring":0,"beamDamp":0,"beamDeform":3600,"beamStrength":9500},
          {"beamLimitSpring":7501000,"beamLimitDamp":250},
          {"breakGroupType":1},
          {"optional":true},
          ["rw1r","rdiffr", {"name":"axle_RR", "breakGroup":"wheel_RR", "deformGroup":"wheelaxleRR", "deformationTriggerRatio":0.001}],
          ["rw1l","rdiffl", {"name":"axle_RL", "breakGroup":"wheel_RL", "deformGroup":"wheelaxleRL", "deformationTriggerRatio":0.001}],
          {"breakGroup":""},
          {"optional":false},
          {"breakGroupType":0},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["shaft", "wheelaxleRL", "differential_R", 1, {"deformGroups":["wheelaxleRL"], "breakTriggerBeam":"axle_RL", "uiName":"Rear Left Axle", "friction":1.39, "dynamicFriction":0.0034}],
        ["shaft", "wheelaxleRR", "differential_R", 2, {"deformGroups":["wheelaxleRR"], "breakTriggerBeam":"axle_RR", "uiName":"Rear Right Axle", "friction":1.39, "dynamicFriction":0.0034}],
    ],
},
}