{
"kzn_ws6_differential_R_adjustable4link": {
    "information":{
        "authors":"Fast Layne",
        "name":"Open Rear Differential",
        "value":350,
    },
    "slotType" : "kzn_ws6_differential_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["kzn_ws6_driveshaft_adjustable4link","kzn_ws6_driveshaft_adjustable4link", "Rear Driveshaft"],
        ["kzn_ws6_finaldrive_R_adjustable4link","kzn_ws6_finaldrive_R_adjustable4link", "Rear Final Drive", {"coreSlot":true}],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        //rear diff
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"open", "uiName":"Rear Differential","defaultVirtualInertia":0.5}],
    ],
    "differential_R": {
        "friction": 4.05,
        "dynamicFriction": 0.00191,
        "torqueLossCoef": 0.032,
    },
},
"kzn_ws6_differential_R_adjustable4link_LSD": {
    "information":{
        "authors":"Fast Layne",
        "name":"Limited Slip Rear Differential",
        "value":900,
    },
    "slotType" : "kzn_ws6_differential_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["kzn_ws6_driveshaft_adjustable4link","kzn_ws6_driveshaft_adjustable4link", "Rear Driveshaft"],
        ["kzn_ws6_finaldrive_R_adjustable4link","kzn_ws6_finaldrive_R_adjustable4link_race", "Rear Final Drive", {"coreSlot":true}],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        //rear diff
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"lsd", "lsdPreload":150, "lsdLockCoef":0.3, "lsdRevLockCoef":0.15, "uiName":"Rear Differential","defaultVirtualInertia":0.5}],
    ],
    "differential_R": {
        "friction": 4.05,
        "dynamicFriction": 0.00191,
        "torqueLossCoef": 0.032,
    },
},
"kzn_ws6_differential_R_adjustable4link_welded": {
    "information":{
        "authors":"Fast Layne",
        "name":"Welded Rear Differential",
        "value":400,
    },
    "slotType" : "kzn_ws6_differential_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["kzn_ws6_driveshaft_adjustable4link","kzn_ws6_driveshaft_adjustable4link", "Rear Driveshaft"],
        ["kzn_ws6_finaldrive_R_adjustable4link","kzn_ws6_finaldrive_R_adjustable4link_race", "Rear Final Drive", {"coreSlot":true}],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        //rear diff
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"locked", "lockTorque":5000, "friction":8, "uiName":"Rear Differential","defaultVirtualInertia":0.5}],
    ],
    "differential_R": {
        "friction": 4.05,
        "dynamicFriction": 0.00191,
        "torqueLossCoef": 0.032,
    },
},
"kzn_ws6_differential_R_adjustable4link_race": {
    "information":{
        "authors":"Fast Layne",
        "name":"Race Limited Slip Rear Differential",
        "value":1700,
    },
    "slotType" : "kzn_ws6_differential_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["kzn_ws6_driveshaft_adjustable4link","kzn_ws6_driveshaft_adjustable4link", "Rear Driveshaft"],
        ["kzn_ws6_finaldrive_R_adjustable4link","kzn_ws6_finaldrive_R_adjustable4link_race", "Rear Final Drive", {"coreSlot":true}],
    ],
    "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"]
        ["$lsdlockcoef_R", "range", "", "Differentials", 0.20, 0, 0.5, "Power Lock Rate", "Additional locking torque proportional to engine torque", {"minDis":0, "maxDis":100}],
        ["$lsdlockcoefrev_R", "range", "", "Differentials", 0.10, 0, 0.5, "Coast Lock Rate", "Additional locking torque proportional to engine braking", {"minDis":0, "maxDis":100}],
    ],
    "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.5}],
    ],
    "differential_R": {
        "friction": 4.05,
        "dynamicFriction": 0.00191,
        "torqueLossCoef": 0.032,
    },
},
"kzn_ws6_differential_R_adjustable4link_locked": {
    "information":{
        "authors":"Fast Layne",
        "name":"Race Locked Rear Differential",
        "value":800,
    },
    "slotType" : "kzn_ws6_differential_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["kzn_ws6_driveshaft_adjustable4link","kzn_ws6_driveshaft_adjustable4link", "Rear Driveshaft"],
        ["kzn_ws6_finaldrive_R_adjustable4link","kzn_ws6_finaldrive_R_adjustable4link_race", "Rear Final Drive", {"coreSlot":true}],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"locked", "lockTorque":20000, "uiName":"Rear Differential","defaultVirtualInertia":0.5}],
    ],
    "differential_R": {
        "friction": 4.05,
        "dynamicFriction": 0.00191,
        "torqueLossCoef": 0.032,
    },
},
"kzn_ws6_differential_R_adjustable4link_experimental": {
    "information":{
        "authors":"Fast Layne",
        "name":"Experimental Locked Rear Differential",
        "value":800,
    },
    "slotType" : "kzn_ws6_differential_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["kzn_ws6_driveshaft_adjustable4link","kzn_ws6_driveshaft_adjustable4link", "Rear Driveshaft"],
        ["kzn_ws6_finaldrive_R_adjustable4link","kzn_ws6_finaldrive_R_adjustable4link_race", "Rear Final Drive", {"coreSlot":true}],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_R", "driveshaft", 1, {"diffType":"locked", "lockTorque":2000000, "uiName":"Rear Differential","defaultVirtualInertia":0.5}],
    ],
    "differential_R": {
        "friction": 4.05,
        "dynamicFriction": 0.00191,
        "torqueLossCoef": 0.032,
    },
},
"kzn_ws6_finaldrive_R_adjustable4link": {
    "information":{
        "authors":"Fast Layne",
        "name":"Race Adjustable Rear Final Drive",
        "value":550,
    },

    "slotType" : "kzn_ws6_finaldrive_R_adjustable4link",

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

    "differential_R" : {
        "gearRatio":"$finaldrive_R",
    },
},
"kzn_ws6_driveshaft_adjustable4link": {
    "information":{
        "authors":"Fast Layne",
        "name":"Drag Rear Driveshaft",
        "value":450,
    },
    "slotType" : "kzn_ws6_driveshaft_adjustable4link",
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        //rear driveshaft
        ["torsionReactor", "torsionReactorR", "gearbox", 1, {}],
        ["shaft", "driveshaft", "torsionReactorR", 1, {"breakTriggerBeam":"driveshaft", "uiName":"Rear Driveshaft", "electricsName":"driveshaft", "friction":0.42, "dynamicFriction":0.0009}],
    ],
    "torsionReactorR": {
        "torqueReactionNodes:":["e1l","e2l","e4r"],
    },
    "props": [
        ["func"      , "mesh"               , "idRef:", "idX:", "idY:", "baseRotation"           , "rotation"            , "translation"        , "min", "max", "offset", "multiplier"],
        ["driveshaft", "kzn_ws6_dshaft", "ax3r"  , "ax3l", "tra1", {"x":-90, "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},
          {"beamDeform":4500,"beamStrength":5500},
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":5001000,"beamLimitDamp":250},
          ["ax3","tra1", {"name":"driveshaft","optional":true,"breakGroup":"driveshaft","deformGroup":"driveshaft"}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
},
}