{
"pab_v55_differential_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Open Rear Differential",
        "value":850,
    },
    "slotType" : "pab_v55_differential_R",
    "slots": [
        ["type", "default", "description"],
        ["pab_v55_finaldrive_R","pab_v55_finaldrive_R_411", "Rear Final Drive", {"coreSlot":true}],
        ["pab_v55_halfshafts_R","pab_v55_halfshafts_R", "Rear Halfshafts"],
        ["pab_v55_driveshaft","pab_v55_driveshaft", "Rear Driveshaft"],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"open", "gearRatio": 4.11, "uiName":"Rear Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_R": {
        "friction": 2.5,
        "dynamicFriction": 0.0011,
        "torqueLossCoef": 0.03,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_diff", ["pab_v55_body","pab_v55_lowermounts_a_R","pab_v55_lowermounts_b_R","pab_v55_lowermounts_c_R","pab_v55_uppermounts_R","pab_v55_shocktop_R"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--diff weight--
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"nodeWeight":31},
         ["rdiff", 0, 1.32, 0.26],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //differential node
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":4800600,"beamDamp":150},
          {"beamDeform":27000,"beamStrength":"FLT_MAX"},
          ["rdiff","r2"],
          //["rdiff","rx1"],
          ["rdiff","r1"],
          ["rdiff","rx2r"],
          ["rdiff","rx2l"],
          ["rdiff","rx1r"],
          ["rdiff","rx1l"],
          ["rdiff","rx4r"],
          ["rdiff","rx4l"],
          ["rdiff","rx5r"],
          ["rdiff","rx5l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_differential_R_welded": {
    "information":{
        "authors":"Kenemation",
        "name":"Welded Rear Differential",
        "value":900,
    },
    "slotType" : "pab_v55_differential_R",
    "slots": [
        ["type", "default", "description"],
        ["pab_v55_finaldrive_R","pab_v55_finaldrive_R_411", "Rear Final Drive", {"coreSlot":true}],
        ["pab_v55_halfshafts_R","pab_v55_halfshafts_R", "Rear Halfshafts"],
        ["pab_v55_driveshaft","pab_v55_driveshaft", "Rear Driveshaft"],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"locked", "lockTorque":10000, "uiName":"Rear Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_R": {
        "friction": 2.5,
        "dynamicFriction": 0.0011,
        "torqueLossCoef": 0.03,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_diff", ["pab_v55_body","pab_v55_lowermounts_a_R","pab_v55_lowermounts_b_R","pab_v55_lowermounts_c_R","pab_v55_uppermounts_R","pab_v55_shocktop_R"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--diff weight--
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"nodeWeight":31},
         ["rdiff", 0, 1.32, 0.26],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //differential node
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":4800600,"beamDamp":150},
          {"beamDeform":27000,"beamStrength":"FLT_MAX"},
          ["rdiff","r2"],
          //["rdiff","rx1"],
          ["rdiff","r1"],
          ["rdiff","rx2r"],
          ["rdiff","rx2l"],
          ["rdiff","rx1r"],
          ["rdiff","rx1l"],
          ["rdiff","rx4r"],
          ["rdiff","rx4l"],
          ["rdiff","rx5r"],
          ["rdiff","rx5l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_differential_R_LSD": {
    "information":{
        "authors":"Kenemation",
        "name":"Limited Slip Rear Differential",
        "value":1150,
    },
    "slotType" : "pab_v55_differential_R",
    "slots": [
        ["type", "default", "description"],
        ["pab_v55_finaldrive_R","pab_v55_finaldrive_R_411", "Rear Final Drive", {"coreSlot":true}],
        ["pab_v55_halfshafts_R","pab_v55_halfshafts_R", "Rear Halfshafts"],
        ["pab_v55_driveshaft","pab_v55_driveshaft", "Rear Driveshaft"],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"lsd", "lsdPreload":100, "lsdLockCoef":0.15, "lsdRevLockCoef":0.075, "uiName":"Rear Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_R": {
        "friction": 2.5,
        "dynamicFriction": 0.0011,
        "torqueLossCoef": 0.03,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_diff", ["pab_v55_body","pab_v55_lowermounts_a_R","pab_v55_lowermounts_b_R","pab_v55_lowermounts_c_R","pab_v55_uppermounts_R","pab_v55_shocktop_R"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--diff weight--
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"nodeWeight":35},
         ["rdiff", 0, 1.32, 0.26],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //differential node
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":4800600,"beamDamp":150},
          {"beamDeform":27000,"beamStrength":"FLT_MAX"},
          ["rdiff","r2"],
          //["rdiff","rx1"],
          ["rdiff","r1"],
          ["rdiff","rx2r"],
          ["rdiff","rx2l"],
          ["rdiff","rx1r"],
          ["rdiff","rx1l"],
          ["rdiff","rx4r"],
          ["rdiff","rx4l"],
          ["rdiff","rx5r"],
          ["rdiff","rx5l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_differential_R_race": {
    "information":{
        "authors":"Kenemation",
        "name":"Race Limited Slip Rear Differential",
        "value":1450,
    },
    "slotType" : "pab_v55_differential_R",
    "slots": [
        ["type", "default", "description"],
        ["pab_v55_finaldrive_R","pab_v55_finaldrive_R_race", "Rear Final Drive", {"coreSlot":true}],
        ["pab_v55_halfshafts_R","pab_v55_halfshafts_R", "Rear Halfshafts"],
        ["pab_v55_driveshaft","pab_v55_driveshaft", "Rear Driveshaft"],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$lsdpreload_R", "range", "N/m", "Differentials", 100, 0, 500, "Pre-load Torque", "Initial locking torque between left and right wheels", {"subCategory":"Rear"}]
        ["$lsdlockcoef_R", "range", "", "Differentials", 0.125, 0, 0.5, "Power Lock Rate", "Additional locking torque proportional to engine torque", {"minDis":0, "maxDis":100, "subCategory":"Rear"}],
        ["$lsdlockcoefrev_R", "range", "", "Differentials", 0.125, 0, 0.5, "Coast Lock Rate", "Additional locking torque proportional to engine braking", {"minDis":0, "maxDis":100, "subCategory":"Rear"}],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"lsd", "lsdPreload":"$lsdpreload_R", "lsdLockCoef":"$lsdlockcoef_R", "lsdRevLockCoef":"$lsdlockcoefrev_R", "uiName":"Rear Differential","defaultVirtualInertia":0.25}],
    ],
    "differential_R": {
        "friction": 2.5,
        "dynamicFriction": 0.0011,
        "torqueLossCoef": 0.03,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_diff", ["pab_v55_body","pab_v55_lowermounts_a_R","pab_v55_lowermounts_b_R","pab_v55_lowermounts_c_R","pab_v55_uppermounts_R","pab_v55_shocktop_R"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--diff weight--
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"nodeWeight":35},
         ["rdiff", 0, 1.32, 0.26],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //differential node
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":4800600,"beamDamp":150},
          {"beamDeform":27000,"beamStrength":"FLT_MAX"},
          ["rdiff","r2"],
          //["rdiff","rx1"],
          ["rdiff","r1"],
          ["rdiff","rx2r"],
          ["rdiff","rx2l"],
          ["rdiff","rx1r"],
          ["rdiff","rx1l"],
          ["rdiff","rx4r"],
          ["rdiff","rx4l"],
          ["rdiff","rx5r"],
          ["rdiff","rx5l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_finaldrive_R_411": {
    "information":{
        "authors":"Kenemation",
        "name":"4.11:1 Rear Final Drive",
        "value":150,
    },

    "slotType" : "pab_v55_finaldrive_R",

    "differential_R" : {
        "gearRatio":4.11,
    },
},
"pab_v55_finaldrive_R_race": {
    "information":{
        "authors":"Kenemation",
        "name":"Race Adjustable Rear Final Drive",
        "value":650,
    },

    "slotType" : "pab_v55_finaldrive_R",

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

    "differential_R" : {
        "gearRatio":"$finaldrive_R",
    },
},
"pab_v55_driveshaft": {
    "information":{
        "authors":"Kenemation",
        "name":"Rear Driveshaft",
        "value":400,
    },
    "slotType" : "pab_v55_driveshaft",
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["torsionReactor", "torsionReactorR", "transfercase", 1, {}],
        ["shaft", "driveshaft", "torsionReactorR", 1, {"breakTriggerBeam":"driveshaft", "uiName":"Rear Driveshaft", "electricsName":"driveshaft", "friction":0.26, "dynamicFriction": 0.00051}],
    ],
    "torsionReactorR": {
        "torqueReactionNodes:":["e2l","e2r","e3r"],
    },
    "props": [
        ["func"      , "mesh"           , "idRef:", "idX:", "idY:", "baseRotation"        , "rotation"            , "translation"        , "min", "max", "offset", "multiplier",],
        ["driveshaft", "pab_v55_driveshaft", "f3r", "f3l", "f8r",    {"x":0, "y":0, "z":0}, {"x":0, "y":1, "z":0} , {"x":0, "y":0, "z":0}, -360, 360, 0, 1,{"breakGroup":"driveshaft","deformGroup":"driveshaft","optional":true}],
    ],
    "beams": [
          ["id1:", "id2:"],
          //driveshaft
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.02, "beamShortBound":0.02},
          {"beamSpring":0,"beamDamp":0,"beamDeform":1500,"beamStrength":3500},
          {"beamLimitSpring":10001000,"beamLimitDamp":250},
          ["rdiff","tra1", {"name":"driveshaft","optional":true,"breakGroup":"driveshaft","deformGroup":"driveshaft"}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_halfshafts_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Rear Halfshafts",
        "value":200,
    },
    "slotType" : "pab_v55_halfshafts_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_halfshaft_R", ["pab_v55_hub_R","pab_v55_upperarm_R","pab_v55_lowermounts_a_R","pab_v55_lowermounts_b_R"]],
    ],
    "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":0.94, "dynamicFriction":0.0023}],
        ["shaft", "wheelaxleRR", "differential_R", 2, {"deformGroups":["wheelaxleRR"], "breakTriggerBeam":"halfshaft_RR", "uiName":"Rear Right Halfshaft", "friction":0.94, "dynamicFriction":0.0023}],
    ],
},
}