{
"ARaz1_suspension_R_mid": {
    "information":{
        "authors":"BeamNG",
        "name":"Independent Rear Suspension",
        "value":450,
    },
    "slotType" : "ARaz1_suspension_R_mid",
    "slots": [
        ["type", "default", "description"],
        ["ARaz1_hub_R","ARaz1_hub_R_4", "Rear Wheel Hubs"],
        ["ARaz1_wheeldata_R_midengine","ARaz1_wheeldata_R_midengine", "Rear Spindles", {"coreSlot":true}],
        ["ARaz1_coilover_R_midengine","ARaz1_coilover_R_midengine", "Rear Struts"],
        ["ARaz1_swaybar_R_midengine","ARaz1_swaybar_R_midengine", "Rear Sway Bar"],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$camber_RR", "range", "", "Wheel Alignment", 0.985, 0.90, 1.04, "Camber Adjust", "Percentage of adjustment range", {"subCategory":"Rear"}],
        ["$toe_RR", "range", "", "Wheel Alignment", 0.9985, 1.01, 0.99, "Toe Adjust", "Percentage of adjustment range", {"subCategory":"Rear"}],
        ["$trackoffset_R", "range", "+m", "Wheels", 0.0,-0.02, 0.09, "Wheel Offset", "Spacing of the wheel from the hub", {"stepDis":0.001,"subCategory":"Rear"}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        //rear running gear
        //["ARaz1_subframe_R", ["ARaz1_body"]],
        ["ARaz1_lowerarm_R_midengine", ["ARaz1_lowermounts_R","ARaz1_lowerarm_R"]],
        ["ARaz1_upperarm_R_midengine", ["ARaz1_uppermounts_R","ARaz1_upperarm_R"]],
        ["ARaz1_hub_R_midengine", ["ARaz1_hub_R"]],
    ],
    "nodes": [
        ["id", "posX", "posY", "posZ"],
         //--REAR RUNNING GEAR--
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},

        //--REAR INDEPENDENT SUSPENSION--
        {"collision":true},
        {"selfCollision":false},
        //rear hub
        {"group":"ARaz1_hub_R"},
        {"nodeWeight":3.5},
        {"collision":true},
        {"selfCollision":true},
        {"nodeWeight":5.5},
        {"group":["ARaz1_lowerarm_R", "ARaz1_hub_R"]},
        ["rh1r", -0.61464, 0.82815, 0.22043],
        ["rh1l", 0.61464, 0.82815, 0.22043],
        ["rh2r", -0.61464, 1.03615, 0.22043],
        ["rh2l", 0.61464, 1.03615, 0.22043],
        {"group":["ARaz1_upperarm_R", "ARaz1_hub_R"]},
        {"selfCollision":false},
        {"nodeWeight":7},
        ["rh3r", -0.56852, 0.96450, 0.41487],
        ["rh3l", 0.56852, 0.96450, 0.41487],
        {"selfCollision":false},
        {"group":""},

        //rear strut mount
        {"nodeWeight":2.75},
        {"group":["ARaz1_upperarm_R", "ARaz1_strutbottom_R"]}
        ["rsp2r", -0.52862, 0.96450, 0.41104],
        ["rsp2l", 0.52862, 0.96450, 0.41104],
        {"group":""},
        ["rsp1r", -0.39017, 0.96450, 0.39812],
        ["rsp1l", 0.39017, 0.96450, 0.39812],
        //mr test beam
        {"selfCollision":false},
        //["mr_R",0.4323,1.251,0.1],
        {"group":""},
    ],
    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        //rigidify lower arm
        {"spring":300000, "damp":250, "deform":75000, "strength":100000},
        //["rh2r", "rx2r", "rx1r", "rh1r"],
        //["rh2l", "rx2l", "rx1l", "rh1l"],
        //shock mount alternate method
        {"spring":500000, "damp":1, "deform":75000, "strength":100000},
        //["rsp2r", "rx3r", "r3r", "rh3r"],
        //["rsp2l", "rx3l", "r3l", "rh3l"],

    ],
    "rails": {
        "shockmount_RR1":{"links:":["rx3r", "r3r"], "broken:":[], "looped":false, "capped":true},
        "shockmount_RL1":{"links:":["rx3l", "r3l"], "broken:":[], "looped":false, "capped":true},
        "shockmount_RR2":{"links:":["rsp1r", "rh3r"], "broken:":[], "looped":false, "capped":true},
        "shockmount_RL2":{"links:":["rsp1l", "rh3l"], "broken:":[], "looped":false, "capped":true},

    },
    "slidenodes": [
        ["id:", "railName", "attached", "fixToRail", "tolerance", "spring", "strength", "capStrength"],
        ["rsp1r", "shockmount_RR1", true, true, 0.0, 11001000, "FLT_MAX", "FLT_MAX"],
        ["rsp1l", "shockmount_RL1", true, true, 0.0, 11001000, "FLT_MAX", "FLT_MAX"],
        ["rsp2r", "shockmount_RR2", true, true, 0.0, 11001000, "FLT_MAX", "FLT_MAX"],
        ["rsp2l", "shockmount_RL2", true, true, 0.0, 11001000, "FLT_MAX", "FLT_MAX"],
    ],

    "beams": [
          ["id1:", "id2:"],
          //--REAR INDEPENDENT SUSPENSION--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          //test beam
          {"beamSpring":0,"beamDamp":0},
          //["rsp1l", "mr_R", {"name":"mr_R"}],

          {"deformLimitExpansion":1.1},
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0,"beamPrecompression":1.0},
          {"beamDeform":76000,"beamStrength":280000},
          {"beamSpring":12001000,"beamDamp":1000},

          //lower arms
          ["rx1r","rh1r", {"beamPrecompression":"$toe_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["rx2r","rh2r"],
          ["rx1l","rh1l", {"beamPrecompression":"$toe_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["rx2l","rh2l"],
          //cross
          ["rx2r","rh1r", {"beamPrecompression":"$=1-(1-$toe_RR)*0.67","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["rx1r","rh2r"],

          ["rx2l","rh1l", {"beamPrecompression":"$=1-(1-$toe_RR)*0.67","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["rx1l","rh2l"],

          //upper arm
          {"beamSpring":12001000,"beamDamp":1000},
          ["rx3r","rh3r", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["rx3l","rh3l", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["r3r","rh3r", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["r3l","rh3l", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],

          //strut mount
          {"beamSpring":3501000,"beamDamp":150},
          {"beamDeform":20000},
          ["rx3r","rsp2r", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5}],
          ["rx3l","rsp2l", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5}],
          ["r3r","rsp2r", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5}],
          ["r3l","rsp2l", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5}],
          ["rh3r","rsp2r"],
          ["rh3l","rsp2l"],
          ["rx3l","rsp1l"],
          ["r3r","rsp1r"],

          //rear hubs
          {"beamDeform":897000,"beamStrength":220000},
          {"beamSpring":9001000,"beamDamp":150},
          ["rh1r","rh2r"],
          ["rh1r","rh3r"],
          ["rh1l","rh2l"],
          ["rh1l","rh3l"],

          {"optional":true},
          //attach to wheel
          {"beamSpring":10001000,"beamDamp":60, "beamStrength":130000}
          {"breakGroup":"wheel_RR"},
          ["rh3r","rw1r", {"name":"axle_RR"}],
          ["rh3r","rw1rr"],
          ["rh1r","rw1r"],
          ["rh1r","rw1rr"],
          ["rh2r","rw1r"],
          ["rh2r","rw1rr"],
          {"breakGroup":"wheel_RL"},
          ["rh3l","rw1l", {"name":"axle_RL"}],
          ["rh3l","rw1ll"],
          ["rh1l","rw1l"],
          ["rh1l","rw1ll"],
          ["rh2l","rw1l"],
          ["rh2l","rw1ll"],
          {"breakGroup":""},
          {"optional":false},


          {"deformLimitExpansion":""},
          //rear limiters
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.2, "beamShortBound":0.27},
          {"beamSpring":0,"beamDamp":0,"beamDeform":58000,"beamStrength":150000},

          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.25, "beamShortBound":0.25},
          //rear end collide
          ["rh1r","q7r"],
          ["rh1l","q7l"],
          ["rh1r","r5r"],
          ["rh1l","r5l"],
          ["rh1r","r2r"],
          ["rh1l","r2l"],
          //inner collide
          ["rh1r","f9r"],
          ["rh1l","f9l"],
          ["rh3r","f9r"],
          ["rh3l","f9l"],
          ["rh1r","f8r"],
          ["rh1l","f8l"],
          ["rh3r","f8r"],
          ["rh3l","f8l"],
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.19, "beamShortBound":0.19},
          ["rh2r","q7r"],
          ["rh2l","q7l"],

          //suspension travel hard limit
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":0,"beamDamp":100,"beamDeform":20000,"beamStrength":150000},
          {"beamLimitSpring":1001000,"beamLimitDamp":500},
          ["rh3r","rs1r", {"longBoundRange":0.07,"shortBoundRange":0.1,"boundZone":0.03,"beamLimitDampRebound":500,"dampCutoffHz":500}],
          ["rh3l","rs1l", {"longBoundRange":0.07,"shortBoundRange":0.1,"boundZone":0.03,"beamLimitDampRebound":500,"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
          ["id1:","id2:","id3:"],
          {"triangleType":"NONCOLLIDABLE"}
          {"dragCoef":0},
          ["rh1r", "rh2r", "rh3r"],
          ["rh1l", "rh3l", "rh2l"],

          ["rx1r", "rh1r", "rx2r"],
          ["rx2r", "rh1r", "rh2r"],
          ["rx1l", "rx2l", "rh1l"],
          ["rx2l", "rh2l", "rh1l"],

          ["rh3r", "r3r", "rx3r"],
          ["rh3l", "rx3l", "r3l"],
          {"triangleType":"NORMALTYPE"},
    ],
    "pressureWheels": [
            ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
            //cancel out brake properties
            {"brakeTorque":0},
            {"parkingTorque":0},
            {"enableBrakeThermals":false},
            {"brakeDiameter":false},
            {"brakeMass":false},
            {"brakeType":false},
            {"rotorMaterial":false},
            {"brakeVentingCoef":false},
    ],
},
"ARaz1_wheeldata_R_midengine": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Spindles",
        "value":100,
    },
    "slotType" : "ARaz1_wheeldata_R_midengine",
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //rear
        {"selfCollision":false},
        {"collision":true},
        {"hubcapBreakGroup":"hubcap_RR"},
        {"hubcapGroup":"hubcap_RR"},
        {"axleBeams":["axle_RR"]},
        ["RR", "wheel_RR", "tire_RR", "rw1rr", "rw1r", 9999, "rh1r", 1,  {"torqueCoupling:":"tra1", "torqueArm:":"tra2r", "torqueArm2:":"tra2l"}],
        {"hubcapBreakGroup":"hubcap_RL"},
        {"hubcapGroup":"hubcap_RL"},
        {"axleBeams":["axle_RL"]},
        ["RL", "wheel_RL", "tire_RL", "rw1ll", "rw1l", 9999, "rh1l",  -1,  {"torqueCoupling:":"tra1", "torqueArm:":"tra2l", "torqueArm2:":"tra2r"}],
        {"selfCollision":true},
        {"hubcapBreakGroup":""},
        {"hubcapGroup":""},
        {"axleBeams":[]},{"disableMeshBreaking":false,"disableTriangleBreaking":false},
        {"enableHubcaps":false},
        {"enableTireLbeams":false},
        {"enableTireSideReinfBeams":false},
        {"enableTireReinfBeams":false},
        {"enableTreadReinfBeams":false},
        {"enableTirePeripheryReinfBeams":false},
        {"loadSensitivitySlope":""},
        {"noLoadCoef":""},
        {"fullLoadCoef":""},
        {"frictionCoef":""},
        {"slidingFrictionCoef":""},
        {"softnessCoef":0.5},
        {"treadCoef":1.0},
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["shaft", "wheelhubRL", "wheelaxleRL", 1, {"connectedWheel":"RL", "breakTriggerBeam":"axle_RL", "uiName":"Rear Left Axle", "friction":2}],
        ["shaft", "wheelhubRR", "wheelaxleRR", 1, {"connectedWheel":"RR", "breakTriggerBeam":"axle_RR", "uiName":"Rear Right Axle", "friction":2}],
    ],
},
"ARaz1_coilover_R_midengine": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Struts",
        "value":250,
    },
    "slotType" : "ARaz1_coilover_R_midengine",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["ARaz1_coilover_R_midengine", ["ARaz1_strutbottom_R","ARaz1_shocktop_R"]],
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear progressive springs
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":26500,"beamStrength":125000},
          {"beamSpring":25200,"beamDamp":0},
          {"beamLimitSpring":31000,"beamLimitDamp":1000},
          //MR 0.95 but digressive
          ["rh3l","rs1l", {"name":"spring_RL","precompressionRange":0.095,"longBoundRange":1,"shortBoundRange":0.135,"boundZone":0.05,"beamLimitDampRebound":0,"dampCutoffHz":500,
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.3,"attackFactor":10,"volumeFactor":2.0,"decayFactor":10,"noiseFactor":0.01,"pitchFactor":0.2,"maxStress":1000}],
          ["rh3r","rs1r", {"name":"spring_RR","precompressionRange":0.095,"longBoundRange":1,"shortBoundRange":0.135,"boundZone":0.05,"beamLimitDampRebound":0,"dampCutoffHz":500,
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.3,"attackFactor":10,"volumeFactor":2.0,"decayFactor":10,"noiseFactor":0.01,"pitchFactor":0.2,"maxStress":1000}],
          //shocks
          //MR 0.95 but digressive
          {"beamSpring":0,"beamDamp":2600},
          {"beamLimitSpring":0,"beamLimitDamp":0},
          ["rs1r","rh3r", {"name":"damper_RR", "beamDampFast":1200,"beamDampRebound":5200,"beamDampReboundFast":3100,"beamDampVelocitySplit":0.13,"dampCutoffHz":500}],
          ["rs1l","rh3l", {"name":"damper_RL", "beamDampFast":1200,"beamDampRebound":5200,"beamDampReboundFast":3100,"beamDampVelocitySplit":0.13,"dampCutoffHz":500}],
          //high speed choking
          {"beamSpring":0,"beamDamp":0},
          ["rs1r","rh3r", {"beamDampFast":5000,"beamDampRebound":0,"beamDampReboundFast":0,"beamDampVelocitySplit":2,"dampCutoffHz":500}],
          ["rs1l","rh3l", {"beamDampFast":5000,"beamDampRebound":0,"beamDampReboundFast":0,"beamDampVelocitySplit":2,"dampCutoffHz":500}],
          //harder bump stop
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":151000,"beamLimitDamp":8000},
          ["rs1r","rh3r", {"longBoundRange":0.08,"shortBoundRange":0.08,"boundZone":0.04,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          ["rs1l","rh3l", {"longBoundRange":0.08,"shortBoundRange":0.08,"boundZone":0.04,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"ARaz1_coilover_R_midengine_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Race Rear Coilovers",
        "value":950,
    },
    "slotType" : "ARaz1_coilover_R_midengine",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["ARaz1_coilover_R_midengine", ["ARaz1_strutbottom_R","ARaz1_shocktop_R"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$springheight_R_mid_race", "range", "+m", "Suspension", 0, -0.06, 0.04, "Spring Height", "Raise or lower the suspension height", {"stepDis":0.005, "subCategory":"Rear"}],
        ["$spring_R_mid_race", "range", "N/m", "Suspension", 50000, 10000, 150000, "Spring Rate", "Spring stiffness", {"stepDis":500, "subCategory":"Rear"}]
        ["$damp_bump_R_mid_race", "range", "N/m/s", "Suspension", 4500, 500, 10000, "Bump Damping", "Damper rate in compression", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_rebound_R_mid_race", "range", "N/m/s", "Suspension", 8000, 500, 20000, "Rebound Damping", "Damper rate in extension", {"stepDis":100, "subCategory":"Rear"}]
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear springs without soft bumpstop
          {"beamType":"|NORMAL"},
          {"beamDeform":26500,"beamStrength":125000},
          {"beamSpring":"$spring_R_mid_race","beamDamp":0},
          //MR 0.95 but digressive
          ["rh3l","rs1l", {"name":"spring_RL", "precompressionRange":"$=($springheight_R_mid_race + 0.005) * 0.9",
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.65,"attackFactor":20,"volumeFactor":2.3,"decayFactor":30,"noiseFactor":0.01,"pitchFactor":1.0,"maxStress":1000}],
          ["rh3r","rs1r", {"name":"spring_RR", "precompressionRange":"$=($springheight_R_mid_race + 0.005) * 0.9",
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.65,"attackFactor":20,"volumeFactor":2.3,"decayFactor":30,"noiseFactor":0.01,"pitchFactor":1.0,"maxStress":1000}],
          //dampers
          //MR 0.95 but digressive
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamLimitSpring":0,"beamLimitDamp":0},
          {"beamSpring":0,"beamDamp":"$damp_bump_R_mid_race"},
          ["rs1r","rh3r", {"name":"damper_RR", "beamDampRebound":"$damp_rebound_R_mid_race","beamDampVelocitySplit":0.05,"beamDampVelocitySplitRebound":0.1,"beamDampFast":"$=$damp_bump_R_mid_race / 2","beamDampReboundFast":"$=$damp_rebound_R_mid_race / 1.5","dampCutoffHz":400}],
          ["rs1l","rh3l", {"name":"damper_RL", "beamDampRebound":"$damp_rebound_R_mid_race","beamDampVelocitySplit":0.05,"beamDampVelocitySplitRebound":0.1,"beamDampFast":"$=$damp_bump_R_mid_race / 2","beamDampReboundFast":"$=$damp_rebound_R_mid_race / 1.5","dampCutoffHz":400}],
          //bump and rebound stop
          {"beamPrecompression":1, "beamType":"|BOUNDED"},
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":301000,"beamLimitDamp":5000},
          ["rs1r","rh3r", {"longBoundRange":0.04,"shortBoundRange":0.1,"boundZone":0.04,"beamLimitDampRebound":0, "beamDampRebound":0,"dampCutoffHz":500}],
          ["rs1l","rh3l", {"longBoundRange":0.04,"shortBoundRange":0.1,"boundZone":0.04,"beamLimitDampRebound":0, "beamDampRebound":0,"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"ARaz1_coilover_R_midengine_rally": {
    "information":{
        "authors":"BeamNG",
        "name":"Rally Rear Coilovers",
        "value":1050,
    },
    "slotType" : "ARaz1_coilover_R_midengine",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["ARaz1_coilover_R_midengine", ["ARaz1_strutbottom_R","ARaz1_shocktop_R"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$springheight_R_mid_rally", "range", "+m", "Suspension", 0, -0.04, 0.06, "Spring Height", "Raise or lower the suspension height", {"stepDis":0.005, "subCategory":"Rear"}],
        ["$spring_R_mid_rally", "range", "N/m", "Suspension", 32000, 10000, 60000, "Spring Rate", "Spring stiffness", {"stepDis":500, "subCategory":"Rear"}]
        ["$damp_bump_R_mid_rally", "range", "N/m/s", "Suspension", 3800, 500, 7500, "Bump Damping", "Damper rate in compression", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_bump_R_fast_mid_rally", "range", "N/m/s", "Suspension", 2000, 500, 15000, "Fast Bump Damping", "Damper rate in fast compression", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_rebound_R_mid_rally", "range", "N/m/s", "Suspension", 5000, 1700, 7500, "Rebound Damping", "Damper rate in extension", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_rebound_R_fast_mid_rally", "range", "N/m/s", "Suspension", 3250, 500, 10000, "Fast Rebound Damping", "Damper rate in fast extension", {"stepDis":100,"subCategory":"Rear"}]
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear springs
          {"beamType":"|NORMAL"},
          {"beamDeform":20000,"beamStrength":200000},
          {"beamSpring":"$spring_R_mid_rally","beamDamp":0},
          //{"beamSpring":0,"beamDamp":0},
          //MR 0.95 but digressive
          ["rh3l","rs1l", {"name":"spring_RL", "precompressionRange":"$=($springheight_R_mid_rally + 0.105) * 0.9",
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.6,"attackFactor":14,"volumeFactor":1.8,"decayFactor":8,"noiseFactor":0.01,"pitchFactor":0.7,"maxStress":800}],
          ["rh3r","rs1r", {"name":"spring_RR", "precompressionRange":"$=($springheight_R_mid_rally + 0.105) * 0.9",
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.6,"attackFactor":14,"volumeFactor":1.8,"decayFactor":8,"noiseFactor":0.01,"pitchFactor":0.7,"maxStress":800}],
          //dampers
          //MR 0.95 but digressive
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamLimitSpring":0,"beamLimitDamp":0},
          {"beamSpring":0,"beamDamp":"$damp_bump_R_mid_rally"},
          ["rh3r","rs1r",
                {
                "name":"damper_RR",
                "beamDamp":"$=$damp_bump_R_mid_rally"
                "beamDampRebound":"$=$damp_rebound_R_mid_rally",
                "beamDampVelocitySplit":0.25,
                "beamDampVelocitySplitRebound":0.1,
                "beamDampFast":"$=$damp_bump_R_fast_mid_rally",
                "beamDampReboundFast":"$=$damp_rebound_R_fast_mid_rally",
                "dampCutoffHz":400
                }
          ],
          ["rh3l","rs1l"
                {
                "name":"damper_RL",
                "beamDamp":"$=$damp_bump_R_mid_rally"
                "beamDampRebound":"$=$damp_rebound_R_mid_rally",
                "beamDampVelocitySplit":0.25,
                "beamDampVelocitySplitRebound":0.1,
                "beamDampFast":"$=$damp_bump_R_fast_mid_rally",
                "beamDampReboundFast":"$=$damp_rebound_R_fast_mid_rally",
                "dampCutoffHz":400
                }
          ],
          //hydraulic bump stop
          {"beamPrecompression":1, "beamType":"|BOUNDED"},
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":10000,"beamLimitDamp":9000},
          ["rs1r","rh3r", {"longBoundRange":1,"shortBoundRange":0.04,"boundZone":0.02,"beamLimitDampRebound":1000,"dampCutoffHz":250}],
          ["rs1l","rh3l", {"longBoundRange":1,"shortBoundRange":0.04,"boundZone":0.02,"beamLimitDampRebound":1000,"dampCutoffHz":250}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"ARaz1_swaybar_R_midengine": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Sway Bar",
        "value":80,
    },
    "slotType" : "ARaz1_swaybar_R_midengine",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["ARaz1_swaybar_R_midengine", ["ARaz1_lowerarm_a_R","ARaz1_lowermounts_a_R","ARaz1_lowerarm_b_R","ARaz1_lowermounts_b_R","ARaz1_uppermounts_R","ARaz1_swaybar_R_midengine"],[]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //anti-roll
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"selfCollision":false},
         {"collision":true},
         {"nodeWeight":2},
         //rear anti-roll mounts
         ["arb1rr", -0.50037, 1.06294, 0.22523],
         ["arb1rl", 0.50037, 1.06294, 0.22523],
         //rear anti-roll ends
         ["arb2rr", -0.50037, 1.06342, 0.28564],
         ["arb2rl", 0.50037, 1.06342, 0.28564],
         //roll bar mounts
         ["arb3rr", -0.28665, 1.30585, 0.24305],
         ["arb3rl", 0.28665, 1.30585, 0.24305],
         {"group":""},
    ],
    "rails": {
        "smr_r":{"links:":["rx2r", "rh2r"], "broken:":[], "looped":false, "capped":true},
        "smr_l":{"links:":["rx2l", "rh2l"], "broken:":[], "looped":false, "capped":true},
    },
    "slidenodes": [
        ["id:", "railName", "attached", "fixToRail", "tolerance", "spring", "strength", "capStrength"],
        ["arb1rr", "smr_r", true, true, 0.0, 11001000, "FLT_MAX", "FLT_MAX"],
        ["arb1rl", "smr_l", true, true, 0.0, 11001000, "FLT_MAX", "FLT_MAX"],
    ],
    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        //15mm 1011
        //16mm 1309
        //17mm 1668
        //18mm 2097
        //19mm 2603
        //20mm 3196
        {"spring":2097, "damp":10, "deform":"FLT_MAX", "strength":"FLT_MAX"},
        ["arb2rr", "arb3rr", "arb3rl", "arb2rl"],
    ],
    "beams": [
          ["id1:", "id2:"],
          //--ANTI-ROLL--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":2501000,"beamDamp":100},
          {"beamDeform":15000,"beamStrength":310000},
          //end link control arm mount
          ["arb1rr","rh2r"],
          ["arb1rl","rh2l"],
          //end links
          ["arb1rr","arb2rr"],
          ["arb1rl","arb2rl"],
          //rigids
          ["arb2rr","arb3rr"],
          ["arb2rl","arb3rl"],
          ["arb2rr","arb3rl"],
          ["arb2rl","arb3rr"],
          //roll bar mounts
          ["arb3rr","rx2r"],
          ["arb3rl","rx2l"],
          ["arb3rr","r3r"],
          ["arb3rl","r3l"],

          ["arb3rr","r2"],
          ["arb3rl","r2"],
          ["arb3rr","r2r"],
          ["arb3rl","r2l"],
          ["arb3rr","r4r"],
          ["arb3rl","r4l"]
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"ARaz1_swaybar_R_midengine_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Race Rear Sway Bar",
        "value":460,
    },
    "slotType" : "ARaz1_swaybar_R_midengine",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["ARaz1_swaybar_R_midengine", ["ARaz1_lowerarm_a_R","ARaz1_lowermounts_a_R","ARaz1_lowerarm_b_R","ARaz1_lowermounts_b_R","ARaz1_uppermounts_R","ARaz1_swaybar_R_midengine"],[]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$arb_spring_R", "range", "N/m", "Suspension", 42000, 10000, 80000, "Anti-Roll Spring Rate", "Stiffness of the anti-roll bar, defined at the end links", {"stepDis":1000,"subCategory":"Rear"}]
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //anti-roll
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"selfCollision":false},
         {"collision":true},
         {"nodeWeight":2},
         //rear anti-roll mounts
         ["arb1rr", -0.50037, 1.06294, 0.22523],
         ["arb1rl", 0.50037, 1.06294, 0.22523],
         //rear anti-roll ends
         ["arb2rr", -0.50037, 1.06342, 0.28564],
         ["arb2rl", 0.50037, 1.06342, 0.28564],
         //roll bar mounts
         ["arb3rr", -0.28665, 1.30585, 0.24305],
         ["arb3rl", 0.28665, 1.30585, 0.24305],
         {"group":""},
    ],
    "rails": {
        "smr_r":{"links:":["rx2r", "rh2r"], "broken:":[], "looped":false, "capped":true},
        "smr_l":{"links:":["rx2l", "rh2l"], "broken:":[], "looped":false, "capped":true},
    },
    "slidenodes": [
        ["id:", "railName", "attached", "fixToRail", "tolerance", "spring", "strength", "capStrength"],
        ["arb1rr", "smr_r", true, true, 0.0, 11001000, "FLT_MAX", "FLT_MAX"],
        ["arb1rl", "smr_l", true, true, 0.0, 11001000, "FLT_MAX", "FLT_MAX"],
    ],
    "beams": [
          ["id1:", "id2:"],
          //--ANTI-ROLL--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":2501000,"beamDamp":150},
          {"beamDeform":15000,"beamStrength":310000},
          //end link control arm mount
          ["arb1rr","rh2r"],
          ["arb1rl","rh2l"],
          //end links
          ["arb1rr","arb2rr"],
          ["arb1rl","arb2rl"],
          //rigids
          ["arb2rr","arb3rr"],
          ["arb2rl","arb3rl"],
          ["arb2rr","arb3rl"],
          ["arb2rl","arb3rr"],
          //roll bar mounts
          ["arb3rr","rx2r"],
          ["arb3rl","rx2l"],
          ["arb3rr","r3r"],
          ["arb3rl","r3l"],
          {"beamSpring":2501000,"beamDamp":150},
          {"beamDeform":8000,"beamStrength":310000},
          ["arb3rr","r2"],
          ["arb3rl","r2"],
          ["arb3rr","r2r"],
          ["arb3rl","r2l"],
          ["arb3rr","r4r"],
          ["arb3rl","r4l"]
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        //motion ratio 1 (difference between real and jbeam sway bar)
        //arm length 0.13
        //0.0308
        {"spring":"$=$arb_spring_R*0.25*0.25", "damp":10, "deform":5000, "strength":9999999},
        ["arb2rr", "arb3rr", "arb3rl", "arb2rl"],
    ],
},
}