{
"ARaz1_transaxle_R_5M": {
    "information":{
        "authors":"BeamNG",
        "name":"5-Speed Manual Transaxle",
        "value":7000,
    },
    "slotType" : "ARaz1_transaxle_R",
    "slots": [
        ["type", "default", "description"],
        ["ARaz1_flywheel","ARaz1_flywheel","Flywheel", {"coreSlot":true}],
        ["ARaz1_differential_R","ARaz1_differential_R", "Rear Differential"],
    ],
    "powertrain": [
        ["type", "name", "inputName", "inputIndex"],
        ["frictionClutch", "clutch", "mainEngine", 1],
        ["manualGearbox", "gearbox", "clutch", 1],
    ],
    "gearbox": {
        "uiName":"Gearbox",
        "gearRatios":[-3.583, 0, 3.818, 2.277, 1.521, 1.030, 0.837],
        "friction":1.30,
        "dynamicFriction":0.0013,
        "torqueLossCoef": 0.0155,

        "gearWhineCoefsInput":  [0.60, 0.00, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12],
        "gearWhineCoefsOutput": [0.00, 0.00, 0.24, 0.24, 0.24, 0.24, 0.24, 0.24, 0.24, 0.24],
        "gearWhineInputEvent": "event:>Vehicle>Transmission>helical_01>twine_in_tuned",
        "gearWhineOutputEvent": "event:>Vehicle>Transmission>helical_01>twine_out_tuned",

        //"forwardInputPitchCoef":1
        //"forwardOutputPitchCoef":1
        //"reverseInputPitchCoef":0.7
        //"reverseOutputPitchCoef":0.7

        //"gearWhineInputPitchCoefSmoothing":50
        //"gearWhineOutputPitchCoefSmoothing":50
        //"gearWhineInputVolumeCoefSmoothing":10
        //"gearWhineOutputVolumeCoefSmoothing":10

        //"gearWhineFixedCoefInput": 0.4
        //"gearWhineFixedCoefOutput": 0.7

    },
    "vehicleController": {
        "calculateOptimalLoadShiftPoints": true,
        "shiftDownRPMOffsetCoef":1.15,
        "transmissionShiftDelay":0.17,
        //"aggressionSmoothingUp":2
        //"aggressionSmoothingDown":0.075
        "lowShiftDownRPM":[0,0,0,1600,1850,1750,1650,1650],
        "lowShiftUpRPM":[0,0,4000,3700,3500,3350,3250],
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["ARaz1_transmission_midengine", ["ARaz1_engine_midengine","ARaz1_transaxle"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":false},
         {"collision":true},
         //transaxle
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"group":"ARaz1_transaxle"},
         {"nodeWeight":7.0},
         ["tra1",0.0,1.2046,0.358],
         ["tra2r",-0.113,1.669,0.49],
         ["tra2l",0.113,1.669,0.49],
         ["tra3",0.0,1.60,0.25],
         {"group":""},

         //transmission mount nodes
         {"nodeWeight":2.0},
         ["tm1r",-0.138,1.4,0.337],
         ["tm1l",0.138,1.4,0.337],
    ],
    "beams": [
          ["id1:", "id2:"],
          //transaxle
          {"deformLimitExpansion":1.2},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":8501000,"beamDamp":250},
          {"beamDeform":1120000,"beamStrength":"FLT_MAX"},
          ["e2l", "tra1"],
          ["e2r", "tra1"],
          ["tra1", "e4l"],
          ["tra1", "e4r"],
          ["tra1", "tra3"],
          ["tra1", "tra2r"],
          ["tra1", "tra2l"],
          ["tra2l", "tra2r"],
          ["tra2r", "tra3"],
          ["tra3", "tra2l"],
          ["tra2r", "e2r"],
          ["tra2r", "e2l"],
          ["tra2r", "e4r"],
          ["tra2r", "e4l"],
          ["tra2l", "e2l"],
          ["tra2l", "e2r"],
          ["tra2l", "e4r"],
          ["tra2l", "e4l"],
          ["tra3", "e2r"],
          ["tra3", "e2l"],
          ["tra3", "e4l"],
          ["tra3", "e4r"],

          //transmission mount nodes
          {"beamSpring":2501000,"beamDamp":50},
          {"beamDeform":63000,"beamStrength":"FLT_MAX"},
          ["tm1r", "tra2r"],
          ["tm1r", "tra2l"],
          ["tm1r", "tra3"],
          ["tm1r", "tra1"],
          ["tm1r", "e2l"],
          ["tm1r", "e2r"],
          ["tm1r", "e4r"],
          ["tm1r", "e4l"],

          ["tm1l", "tra2r"],
          ["tm1l", "tra2l"],
          ["tm1l", "tra3"],
          ["tm1l", "tra1"],
          ["tm1l", "e2l"],
          ["tm1l", "e2r"],
          ["tm1l", "e4r"],
          ["tm1l", "e4l"],

          ["tm1r", "tm1l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"ARaz1_transaxle_R_5M_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Race 5-Speed Manual Transaxle",
        "value":16000,
    },
    "slotType" : "ARaz1_transaxle_R",
    "slots": [
        ["type", "default", "description"],
        ["ARaz1_flywheel","ARaz1_flywheel_race","Flywheel", {"coreSlot":true}],
        ["ARaz1_differential_R","ARaz1_differential_R_race", "Rear Differential"],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$gear_R", "range", ":1", "Transmission", 3.27, 0.5, 5, "Reverse Gear Ratio", "Torque multiplication ratio", {"stepDis":0.01}],
        ["$gear_1", "range", ":1", "Transmission", 3.67, 0.5, 5, "1st Gear Ratio",     "Torque multiplication ratio", {"stepDis":0.01}],
        ["$gear_2", "range", ":1", "Transmission", 2.28, 0.5, 5, "2nd Gear Ratio",     "Torque multiplication ratio", {"stepDis":0.01}],
        ["$gear_3", "range", ":1", "Transmission", 1.62, 0.5, 5, "3rd Gear Ratio",     "Torque multiplication ratio", {"stepDis":0.01}],
        ["$gear_4", "range", ":1", "Transmission", 1.27, 0.5, 5, "4th Gear Ratio",     "Torque multiplication ratio", {"stepDis":0.01}],
        ["$gear_5", "range", ":1", "Transmission", 1.00, 0.5, 5, "5th Gear Ratio",     "Torque multiplication ratio", {"stepDis":0.01}],
    ],
    "powertrain": [
        ["type", "name", "inputName", "inputIndex"],
        ["frictionClutch", "clutch", "mainEngine", 1],
        ["manualGearbox", "gearbox", "clutch", 1],
    ],
    "gearbox": {
        "uiName":"Gearbox",
        "gearRatios":["$=-$gear_R", 0, "$gear_1", "$gear_2", "$gear_3", "$gear_4", "$gear_5"],
        "friction":1.62,
        "dynamicFriction":0.0016,
        "torqueLossCoef": 0.0135,

        "gearWhineCoefsInput":  [0.66, 0.00, 0.33, 0.33, 0.33, 0.33, 0.33, 0.33, 0.33, 0.33],
        "gearWhineCoefsOutput": [0.00, 0.00, 0.66, 0.66, 0.66, 0.66, 0.66, 0.66, 0.66, 0.66],
        "gearWhineInputEvent": "event:>Vehicle>Transmission>straight_01>twine_in_race",
        "gearWhineOutputEvent": "event:>Vehicle>Transmission>straight_01>twine_out_race",

        //"forwardInputPitchCoef":1
        //"forwardOutputPitchCoef":1
        //"reverseInputPitchCoef":0.7
        //"reverseOutputPitchCoef":0.7

        //"gearWhineInputPitchCoefSmoothing":50
        //"gearWhineOutputPitchCoefSmoothing":50
        //"gearWhineInputVolumeCoefSmoothing":10
        //"gearWhineOutputVolumeCoefSmoothing":10

        //"gearWhineFixedCoefInput": 0.5
        //"gearWhineFixedCoefOutput": 0.8

    },
    "clutch": {
        "clutchFreePlay":0.2,
    },
    "vehicleController": {
        "calculateOptimalLoadShiftPoints": true,
        "shiftDownRPMOffsetCoef":1.15,
        "transmissionShiftDelay":0.15,
        //"aggressionSmoothingDown":0.05
        "aggressionHoldOffThrottleDelay":3,
        "lowShiftDownRPM":[0,0,0,2200,2400,2300,2250,2250],
        "lowShiftUpRPM":[0,0,4500,4300,4100,3900,3900],
        //"wheelSlipUpThreshold":100,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["ARaz1_transmission_midengine", ["ARaz1_engine_midengine","ARaz1_transaxle"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":false},
         {"collision":true},
         //transaxle
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"group":"ARaz1_transaxle"},
         {"nodeWeight":7.0},
         ["tra1",0.0,1.2046,0.358],
         ["tra2r",-0.113,1.669,0.49],
         ["tra2l",0.113,1.669,0.49],
         ["tra3",0.0,1.60,0.25],
         {"group":""},

         //transmission mount nodes
         {"nodeWeight":2.0},
         ["tm1r",-0.138,1.4,0.337],
         ["tm1l",0.138,1.4,0.337],
    ],
    "beams": [
          ["id1:", "id2:"],
          //transaxle
          {"deformLimitExpansion":1.2},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":8501000,"beamDamp":250},
          {"beamDeform":1120000,"beamStrength":"FLT_MAX"},
          ["e2l", "tra1"],
          ["e2r", "tra1"],
          ["tra1", "e4l"],
          ["tra1", "e4r"],
          ["tra1", "tra3"],
          ["tra1", "tra2r"],
          ["tra1", "tra2l"],
          ["tra2l", "tra2r"],
          ["tra2r", "tra3"],
          ["tra3", "tra2l"],
          ["tra2r", "e2r"],
          ["tra2r", "e2l"],
          ["tra2r", "e4r"],
          ["tra2r", "e4l"],
          ["tra2l", "e2l"],
          ["tra2l", "e2r"],
          ["tra2l", "e4r"],
          ["tra2l", "e4l"],
          ["tra3", "e2r"],
          ["tra3", "e2l"],
          ["tra3", "e4l"],
          ["tra3", "e4r"],

          //transmission mount nodes
          {"beamSpring":2501000,"beamDamp":50},
          {"beamDeform":63000,"beamStrength":"FLT_MAX"},
          ["tm1r", "tra2r"],
          ["tm1r", "tra2l"],
          ["tm1r", "tra3"],
          ["tm1r", "tra1"],
          ["tm1r", "e2l"],
          ["tm1r", "e2r"],
          ["tm1r", "e4r"],
          ["tm1r", "e4l"],

          ["tm1l", "tra2r"],
          ["tm1l", "tra2l"],
          ["tm1l", "tra3"],
          ["tm1l", "tra1"],
          ["tm1l", "e2l"],
          ["tm1l", "e2r"],
          ["tm1l", "e4r"],
          ["tm1l", "e4l"],

          ["tm1r", "tm1l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
}