{
"revuelto_transfer_case_RWD": {
    "information":{
        "authors":"BeamNG",
        "name":"RWD Transfer Case",
        "value":300,
    },
    "slotType" : "revuelto_transfer_case",
    "slots": [
        ["type", "default", "description"],
        ["revuelto_driveshaft_R_rwd","revuelto_driveshaft_R_rwd", "Rear Driveshaft"],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["shaft", "transfercase", "gearbox", 1, {"friction":0.4, "dynamicFriction":0.00046, "uiName":"Rear Output Shaft"}],
    ],
    
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":1500600,"beamDamp":60},
          {"beamDeform":30000,"beamStrength":"FLT_MAX"},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
      ],
    },
    "revuelto_front_output_ratio": {
        "information":{
            "authors":"BeamNG",
            "name":"0.946:1 Front Output Gear Ratio",
            "value":350,
        },
        "slotType" : "revuelto_front_output_ratio",
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["shaft", "transfercaseOutput", "transfercase", 2, {"gearRatio":0.946, "uiName":"Front Output Gear"}],
        ],
    },
    "revuelto_front_output_ratio_1_1": {
        "information":{
            "authors":"BeamNG",
            "name":"1:1 Front Output Gear Ratio",
            "value":475,
        },
        "slotType" : "revuelto_front_output_ratio",
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["shaft", "transfercaseOutput", "transfercase", 2, {"gearRatio":1, "uiName":"Front Output Gear"}],
        ],
    },
    "revuelto_front_output_ratio_race": {
        "information":{
            "authors":"BeamNG",
            "name":"Adjustable Front Output Gear Ratio",
            "value":1460,
        },
        "slotType" : "revuelto_front_output_ratio",
        "variables": [
            ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
            ["$tcase_frontratio", "range", ":1", "Transfer Case", 0.946, 0.85, 1.15, "Front Output Gear Ratio", "Accounts for tire diameter ratio"{"stepDis":0.001}],
        ],
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["shaft", "transfercaseOutput", "transfercase", 2, {"gearRatio":"$tcase_frontratio", "uiName":"Front Drive Gear"}],
        ],
},
"revuelto_driveshaft_R_rwd": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Driveshaft",
        "value":300,
    },
    "slotType" : "revuelto_driveshaft_R_rwd",
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        //rear driveshaft
        ["torsionReactor", "torsionReactorR", "transfercase", 1, {}],
        ["shaft", "driveshaft", "torsionReactorR", 1, {"deformGroups":["driveshaft"], "breakTriggerBeam":"driveshaft", "uiName":"Rear Driveshaft", "electricsName":"driveshaft", "friction":0.46, "dynamicFriction":0.00099}],
    ],
    "torsionReactorR": {
        "torqueReactionNodes:":["e1l","e2l","e4r"],
    },
    
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--8 Speed Auto--
         {"selfCollision":false},
         {"collision":true},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"nodeWeight":0.5},
         //["driveshaft", 0.0, 0.496, 0.35],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear driveshaft
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":151000,"beamDamp":100},
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["driveshaft","f8"],
          ["driveshaft","f4r"],
          ["driveshaft","f4l"],
          ["driveshaft","f3r"],
          ["driveshaft","f3l"],
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.01, "beamShortBound":0.01},
          {"beamSpring":0,"beamDamp":0,"beamDeform":1500,"beamStrength":3500},
          {"beamLimitSpring":10001000,"beamLimitDamp":250},
          ["rdiff","tra1", {"name":"driveshaft","breakGroup":"driveshaft","optional":true,"deformGroup":"driveshaft"}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
}