{
"pab_v55_suspension_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Independent Rear Suspension",
        "value":650,
    },
    "slotType" : "pab_v55_suspension_R",
    "slots": [
        ["type", "default", "description"],
        ["pab_v55_brake_R","pab_v55_brake_R", "Rear Brakes"],
        ["pab_v55_differential_R","", "Rear Differential"],
        //The case() is for backwards compatibility for old configs that use "trackwidth_R" variable.
        //To change the base track width, edit the trackoffset_R offset in the expression.
        ["wheel_R_5","pab_v55_wheel_R", "Rear Wheels", {"nodeOffset":{"x":"$=case($trackwidth_R == nil, $trackoffset_R+0.315, $trackwidth_R)", "y":1.4639, "z":0.305}}],
        ["pab_v55_wheeldata_R","pab_v55_wheeldata_R", "Rear Spindles", {"coreSlot":true}],
        ["pab_v55_coilover_R","pab_v55_coilover_R", "Rear Struts"],
        ["pab_v55_swaybar_R","pab_v55_swaybar_R", "Rear Sway Bar"],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$camber_RR", "range", "", "Wheel Alignment", 0.99, 0.95, 1.03, "Camber Adjust", "Adjusts the wheel camber angles", {"subCategory":"Rear"}],
        ["$toe_RR", "range", "", "Wheel Alignment", 0.994, 1.02, 0.98, "Toe Adjust", "Adjusts the wheel toe-in angle", {"subCategory":"Rear"}],
        ["$trackoffset_R", "range", "+m", "Wheels", 0.0,-0.05, 0.05, "Wheel Offset", "Spacing of the wheel from the hub", {"stepDis":0.001,"subCategory":"Rear"}],
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         //rear running gear
         ["pab_v55_subframe_R", ["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"]],
         ["pab_v55_lowerarm_R", ["pab_v55_lowermounts_a_R","pab_v55_lowerarm_a_RR","pab_v55_lowerarm_a_RL","pab_v55_lowermounts_b_R","pab_v55_lowerarm_b_RR","pab_v55_lowerarm_b_RL"]],
         ["pab_v55_trailingarm_R", ["pab_v55_lowermounts_c_R","pab_v55_lowerarm_c_RR","pab_v55_lowerarm_c_RL","pab_v55_lowerarm_a_RR","pab_v55_lowerarm_a_RL","pab_v55_upperarm_R"]],
         ["pab_v55_hub_R", ["pab_v55_lowerarm_a_RR","pab_v55_lowerarm_a_RL","pab_v55_lowerarm_b_RR","pab_v55_lowerarm_b_RL","pab_v55_lowerarm_c_RR","pab_v55_lowerarm_c_RL","pab_v55_upperarm_R","pab_v55_hub_R"]],
         ["pab_v55_upperarm_R", ["pab_v55_uppermounts_R","pab_v55_upperarm_R"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
          //--REAR RUNNING GEAR--
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"collision":true},
         {"selfCollision":false},
         //multilink suspension
         {"nodeWeight":6.1},
         //control arm 1
         {"group":"pab_v55_lowermounts_a_R"},
         ["rx1r", -0.30960, 1.58641, 0.21340],
         ["rx1l", 0.30960, 1.58641, 0.21340],
         //control arm 2
         {"group":"pab_v55_lowermounts_b_R"},
         ["rx2r", -0.42230, 1.34201, 0.31180],
         ["rx2l", 0.42230, 1.34201, 0.31180],
         //["rx2r", -0.422, 1.168, 0.308],
         //["rx2l", 0.422, 1.168, 0.308],
         {"selfCollision":true},
         //upper wishbone
         {"group":"pab_v55_uppermounts_R"},
         ["rx4r", -0.43660, 1.38031, 0.41970],
         ["rx4l", 0.43660, 1.38031, 0.41970],
         ["rx5r", -0.36990, 1.66451, 0.39390],
         ["rx5l", 0.36990, 1.66451, 0.39390],
         //trailing arm
         {"group":"pab_v55_lowermounts_c_R"},
         ["rx3r", -0.59690, 1.01181, 0.25830, {"selfCollision":false}],
         ["rx3l", 0.59690, 1.01181, 0.25830, {"selfCollision":false}],

         //--REAR INDEPENDENT SUSPENSION--
         {"collision":true},
         {"selfCollision":true},
         //rear hub
         {"nodeWeight":6.0},
         ["rh1r", -0.69100, 1.55481, 0.22270, {"group":"pab_v55_lowerarm_a_RR"}],
         ["rh1l", 0.69100, 1.55481, 0.22270, {"group":"pab_v55_lowerarm_a_RL"}],
         {"nodeWeight":5.0},
         ["rh2r", -0.68660, 1.40861, 0.20170, {"group":"pab_v55_lowerarm_b_RR"}],
         ["rh2l", 0.68660, 1.40861, 0.20170, {"group":"pab_v55_lowerarm_b_RL"}],
         {"selfCollision":false},
         ["rh3r", -0.69760, 1.33651, 0.31040, {"group":"pab_v55_lowerarm_c_RR"}],
         ["rh3l", 0.69760, 1.33651, 0.31040, {"group":"pab_v55_lowerarm_c_RL"}],
         {"group":"pab_v55_upperarm_R"},
         ["rh4r", -0.63850, 1.45501, 0.42910],
         ["rh4l", 0.63850, 1.45501, 0.42910],
         {"group":"pab_v55_hub_R"},
         {"selfCollision":true},
         {"nodeWeight":3.25},
         ["rh5r", -0.73000, 1.62011, 0.28500],
         ["rh5l", 0.73000, 1.62011, 0.28500],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
           //--REAR RUNNING GEAR--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":5501000,"beamDamp":150},
          {"beamDeform":30000,"beamStrength":"FLT_MAX"},
          //rear suspension subframe
          {"deformLimitExpansion":1.1},
          ["rx1r","rx1l"],
          ["rx1r","rx2r"],
          ["rx1l","rx2l"],
          ["rx1r","rx2l"],
          ["rx1l","rx2r"],
          ["rx2r","rx2l"],

          ["rx4r","rx4l"],
          ["rx5r","rx5l"],
          ["rx4r","rx5r"],
          ["rx4l","rx5l"],
          ["rx4r","rx5l"],
          ["rx4l","rx5r"],

          {"deformLimitExpansion":""},
          ["rx1r","rx5l"],
          ["rx1l","rx5r"],
          ["rx1r","rx3r"],
          ["rx1l","rx3l"],

          //["rx3l","rx1r"],
          //["rx3r","rx1l"],
          ["rx3r","rx2r"],
          ["rx3l","rx2l"],
          ["rx2r","rx4l"],
          ["rx2l","rx4r"],
          ["rx1r","rx5r"],
          ["rx1l","rx5l"],
          ["rx1r","rx4r"],
          ["rx1l","rx4l"],
          ["rx2r","rx4r"],
          ["rx2l","rx4l"],
          ["rx2r","rx5r"],
          ["rx2l","rx5l"],
          ["rx4r","rx3r"],
          ["rx4l","rx3l"],

          {"beamSpring":4501000,"beamDamp":150},
          //["rx1","rx1l"],
          //["rx1","rx1r"],
          //["rx1","rx2r"],
          //["rx1","rx2l"],

          //["rx1","rx4r"],
          //["rx1","rx4l"],
          //["rx1","rx5r"],
          //["rx1","rx5l"],

          //rear suspension subframe attach
          {"beamSpring":4001000,"beamDamp":120},
          {"beamDeform":8400,"beamStrength":"FLT_MAX"},
          ["rx3r","f4r"],
          ["rx3l","f4l"],
          ["rx3r","f4rr"],
          ["rx3l","f4ll"],
          ["rx3r","f9r"],
          ["rx3l","f9l"],
          ["rx1r","r2rr"],
          ["rx1l","r2ll"],
          ["rx1r","r2"],
          ["rx1l","r2"],
          //["rx1","r2rr"],
          //["rx1","r2ll"],
          //["rx1","r2"],
          ["rx3r","f3r"],
          ["rx3l","f3l"],
          ["rx3r","f8r"],
          ["rx3l","f8l"],
          ["rx3r","f3rr"],
          ["rx3l","f3ll"],
          ["rx2r","f4r"],
          ["rx2l","f4l"],
          ["rx2r","f4l"],
          ["rx2l","f4r"],
          ["rx2r","f4rr"],
          ["rx2l","f4ll"],
          ["rx2r","r2rr"],
          ["rx2l","r2ll"],
          ["rx2r","r1"],
          ["rx2l","r1"],
          ["rx1r","r1"],
          ["rx1l","r1"],
          ["rx1r","r3rr"],
          ["rx1l","r3ll"],
          ["rx1r","r3"],
          ["rx1l","r3"],
          //["rx1r","f4r"],
          //["rx1l","f4l"],

          {"beamDeform":15000,"beamStrength":"FLT_MAX"},
          ["rx2r","r1rr"],
          ["rx2l","r1ll"],
          ["rx1r","r1rr"],
          ["rx1l","r1ll"],

          //upper
          {"beamDeform":25000,"beamStrength":"FLT_MAX"},
          ["rx4r","f4r"],
          ["rx4l","f4l"],
          ["rx4r","f4rr"],
          ["rx4l","f4ll"],
          ["rx5r","r2"],
          ["rx5l","r2"],
          ["rx5r","r2rr"],
          ["rx5l","r2ll"],
          ["rx5r","r1rr"],
          ["rx5l","r1ll"],

          {"beamDeform":10800,"beamStrength":"FLT_MAX"},
          ["rx5r","r5rr"],
          ["rx5l","r5ll"],
          ["rx5r","r3rr"],
          ["rx5l","r3ll"],
          ["rx5r","r5"],
          ["rx5l","r5"],
          ["rx5r","r3"],
          ["rx5l","r3"],

          ["rx4r","f4l"],
          ["rx4l","f4r"],
          ["rx4r","r1"],
          ["rx4l","r1"],
          ["rx4r","r1rr"],
          ["rx4l","r1ll"],

          ["rx4r","f9r"],
          ["rx4l","f9l"],
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["rx4r","f9l"],
          ["rx4l","f9r"],
          ["rx2r","f9r"],
          ["rx2l","f9l"],

          //--REAR INDEPENDENT SUSPENSION--
          //multilink suspension
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamDeform":95000,"beamStrength":350000},
          {"beamSpring":9001000,"beamDamp":150},
          {"deformLimitExpansion":1.1},
          //rear hub
          ["rh1r","rh2r"],
          ["rh1l","rh2l"],
          ["rh1r","rh3r"],
          ["rh1l","rh3l"],
          ["rh2r","rh3r"],
          ["rh2l","rh3l"],
          ["rh2r","rh4r"],
          ["rh2l","rh4l"],
          ["rh3r","rh4r"],
          ["rh3l","rh4l"],
          ["rh1r","rh4r"],
          ["rh1l","rh4l"],

          {"beamSpring":5001000,"beamDamp":150},
          ["rh1r","rh5r"],
          ["rh1l","rh5l"],
          ["rh2r","rh5r"],
          ["rh2l","rh5l"],
          ["rh3r","rh5r"],
          ["rh3l","rh5l"],
          ["rh4r","rh5r"],
          ["rh4l","rh5l"],

          {"optional":true},
          {"beamSpring":9501000,"beamDamp":150},
          {"beamDeform":95000,"beamStrength":275000},
          //attach to wheel
          {"breakGroup":"wheel_RR"},
          ["rh1r","rw1r", {"name":"axle_RR"}],
          ["rh2r","rw1r"],
          ["rh3r","rw1r"],
          ["rh4r","rw1r"],
          ["rh5r","rw1r", {"beamSpring":5001000,"beamDamp":50}],

          ["rh1r","rw1rr"],
          ["rh2r","rw1rr"],
          ["rh3r","rw1rr"],
          ["rh4r","rw1rr"],
          ["rh5r","rw1rr", {"beamSpring":5001000,"beamDamp":50}],

          {"breakGroup":"wheel_RL"},
          ["rh1l","rw1l", {"name":"axle_RL"}],
          ["rh2l","rw1l"],
          ["rh3l","rw1l"],
          ["rh4l","rw1l"],
          ["rh5l","rw1l", {"beamSpring":5001000,"beamDamp":50}],

          ["rh1l","rw1ll"],
          ["rh2l","rw1ll"],
          ["rh4l","rw1ll"],
          ["rh3l","rw1ll"],
          ["rh5l","rw1ll", {"beamSpring":5001000,"beamDamp":50}],
          {"breakGroup":""},
          {"optional":false},

          //bushing damping
          {"beamSpring":0,"beamDamp":3000},
          {"beamDeform":15000,"beamStrength":55000},
          ["rx1r", "rh2r", {"dampCutoffHz":500}],
          ["rx1l", "rh2l", {"dampCutoffHz":500}],
          ["rx2r", "rh5r", {"dampCutoffHz":500}],
          ["rx2l", "rh5l", {"dampCutoffHz":500}],


          //lower arm 1
          {"beamDeform":85000,"beamStrength":450000},
          {"beamSpring":15001000,"beamDamp":1500},
          ["rx1r","rh1r", {"dampCutoffHz":500}],
          ["rx1l","rh1l", {"dampCutoffHz":500}],

          //lower arm 2 (tie rod)
          //toe in
          {"beamPrecompression":0.998},
          {"beamSpring":15001000,"beamDamp":1500},
          ["rx2r","rh3r", {"beamPrecompression":"$toe_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["rx2l","rh3l", {"beamPrecompression":"$toe_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          {"beamPrecompression":1},

          {"beamSpring":8001000,"beamDamp":1500},
          //trailing arm
          ["rx3r","rh2r", {"dampCutoffHz":500}],
          ["rx3l","rh2l", {"dampCutoffHz":500}],

          //upper arm
          //camber
          {"beamSpring":15001000,"beamDamp":1500},
          {"breakGroup":"upper_arm_RR"},
          ["rx4r","rh4r", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["rx5r","rh4r", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          {"breakGroup":"upper_arm_RL"},
          ["rx4l","rh4l", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          ["rx5l","rh4l", {"beamPrecompression":"$camber_RR","beamPrecompressionTime":0.5,"dampCutoffHz":500}],
          {"breakGroup":""},

          //rear limiters
          {"deformLimitExpansion":""},
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.25, "beamShortBound":0.25},
          {"beamSpring":0,"beamDamp":0,"beamDeform":30000,"beamStrength":400000},
          {"beamLimitSpring":2001000,"beamLimitDamp":1000},
          {"breakGroupType":1},
          {"breakGroup":"wheel_RR"},
          ["rw1rr","f4rr", {"optional":true}],
          ["rh2r","f4rr"],
          ["rh2r","f4r"],
          ["rh1r","f4r"],
          {"breakGroup":"wheel_RL"},
          ["rw1ll","f4ll", {"optional":true}],
          ["rh2l","f4ll"],
          ["rh2l","f4l"],
          ["rh1l","f4l"],
          {"breakGroupType":0},
          {"breakGroup":""},

          {"beamPrecompression":1, "beamType":"|SUPPORT", "beamLongBound":2},
          {"beamSpring":2501000,"beamDamp":100,"beamDeform":45000,"beamStrength":450000},
          //upper arm anti-invert
          {"beamPrecompression":0.85},
          ["rh4r","rx1r"],
          ["rh4l","rx1l"],
          ["rh4r","f4r"],
          ["rh4l","f4l"],

          {"beamPrecompression":0.95},
          ["rh4l","rx4r"],
          ["rh4l","rx5r"],
          ["rh4r","rx4l"],
          ["rh4r","rx5l"],

          //lower arm anti-invert
          {"beamPrecompression":0.85},
          ["rh2r","rx5r"],
          ["rh2l","rx5l"],
          {"beamPrecompression":0.75},
          ["rh1r","rx4r"],
          ["rh1l","rx4l"],

          //hub anti-invert
          ["rh3r","rx1r"],
          ["rh1r","rx2r"],
          ["rh3l","rx1l"],
          ["rh1l","rx2l"],
          ["rh5r","rx5r"],
          ["rh5l","rx5l"],
          ["rh2r","rx1r"],
          ["rh2l","rx1l"],

          //hard travel limit
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":15000,"beamStrength":150000},
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":1001000,"beamLimitDamp":1000},
          ["rh1r","r1rr", {"longBoundRange":0.12,"shortBoundRange":0.095,"boundZone":0.025,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          ["rh1l","r1ll", {"longBoundRange":0.12,"shortBoundRange":0.095,"boundZone":0.025,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //suspension shape
            {"triangleType":"NONCOLLIDABLE"},
            ["rx3r",  "rh2r", "rh1r"],
            ["rx1r", "rh2r", "rh1r"],
            ["rh3r", "rx2r", "rh5r"],
            //["rx5r", "rh3r", "rh5r"],
            ["rh4r", "rx4r", "rx5r"],
            ["rh5r", "rh3r", "rh4r"],
            ["rh2r", "rh3r", "rh5r"],
            ["rh1r", "rh2r", "rh5r"],

            ["rh2l", "rx3l",  "rh1l"],
            ["rh2l", "rx1l", "rh1l"],
            ["rx2l", "rh3l", "rh5l"],
            //["rh3l", "rx5l", "rh5l"],
            ["rx4l", "rh4l", "rx5l"],
            ["rh3l", "rh5l", "rh4l"],
            ["rh3l", "rh2l", "rh5l"],
            ["rh2l", "rh1l", "rh5l"],
            {"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},
    ],
},
"pab_v55_wheeldata_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Rear Spindles",
        "value":100,
    },
    "slotType" : "pab_v55_wheeldata_R",
    "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, "rh5r", 1,  {"torqueCoupling:":"rdiff", "torqueArm:":"f4r", "torqueArm2:":"f4l"}],
        {"hubcapBreakGroup":"hubcap_RL"},
        {"hubcapGroup":"hubcap_RL"},
        {"axleBeams":["axle_RL"]},
        ["RL", "wheel_RL", "tire_RL", "rw1ll", "rw1l", 9999, "rh5l", -1, {"torqueCoupling:":"rdiff", "torqueArm:":"f4l", "torqueArm2:":"f4r"}],
        {"selfCollision":true},
        {"axleBeams":[]},{"disableMeshBreaking":false,"disableTriangleBreaking":false},
        {"hubcapBreakGroup":""},
        {"hubcapGroup":""},
        {"enableHubcaps":false},
        {"enableTireLbeams":false},
        {"enableTreadReinfBeams":false},
        {"enableTireReinfBeams":false},
        {"enableTreadReinfBeams":false},
        {"enableTirePeripheryReinfBeams":false},
        {"loadSensitivitySlope":""},
        {"noLoadCoef":""},
        {"fullLoadCoef":""},
        {"frictionCoef":""},
        {"slidingFrictionCoef":""},
        {"softnessCoef":0.5},
        {"treadCoef":1.0},
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["shaft", "spindleRL", "wheelaxleRL", 1, {"connectedWheel":"RL", "breakTriggerBeam":"axle_RL", "uiName":"Rear Left Axle", "friction":0.95, "dynamicFriction":0.002}],
        ["shaft", "spindleRR", "wheelaxleRR", 1, {"connectedWheel":"RR", "breakTriggerBeam":"axle_RR", "uiName":"Rear Right Axle", "friction":0.95, "dynamicFriction":0.002}],
    ],
},
"pab_v55_coilover_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Rear Struts",
        "value":200,
    },
    "slotType" : "pab_v55_coilover_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_coilover_R", ["pab_v55_lowerarm_a_RR","pab_v55_lowerarm_a_RL","pab_v55_lowerarm_b_RR","pab_v55_lowerarm_b_RL","pab_v55_shocktop_R"]],
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear springs with soft initial bumpstop
          {"beamPrecompression":1, "beamType":"|BOUNDED","beamLongBound":1,"beamShortBound":1},
          {"beamDeform":13000,"beamStrength":150000},
          {"beamSpring":37000,"beamDamp":0},
          {"beamLimitSpring":56000,"beamLimitDamp":1000},
          ["rh1l","r1ll", {"precompressionRange":0.081,"longBoundRange":1,"shortBoundRange":0.105,"boundZone":0.09,"beamLimitDampRebound":0,"dampCutoffHz":500,
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.5,"attackFactor":32,"volumeFactor":0.5,"decayFactor":30,"noiseFactor":0.01,"pitchFactor":0.3,"maxStress":1500}],
          ["rh1r","r1rr", {"precompressionRange":0.081,"longBoundRange":1,"shortBoundRange":0.105,"boundZone":0.09,"beamLimitDampRebound":0,"dampCutoffHz":500,
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.5,"attackFactor":32,"volumeFactor":0.5,"decayFactor":30,"noiseFactor":0.01,"pitchFactor":0.3,"maxStress":1500}],
          //dampers
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":0,"beamDamp":1300},
          {"beamLimitSpring":0,"beamLimitDamp":0},
          ["rh1r","r1rr", {"beamDampFast":1100,"beamDampRebound":6000,"beamDampReboundFast":3000,"beamDampVelocitySplit":0.2,"dampCutoffHz":500}],
          ["rh1l","r1ll", {"beamDampFast":1100,"beamDampRebound":6000,"beamDampReboundFast":3000,"beamDampVelocitySplit":0.2,"dampCutoffHz":500}],
          //harder bump stop
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":151000,"beamLimitDamp":8000},
          ["rh1r","r1rr", {"longBoundRange":0.08,"shortBoundRange":0.085,"boundZone":0.04,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          ["rh1l","r1ll", {"longBoundRange":0.08,"shortBoundRange":0.085,"boundZone":0.04,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_coilover_R_race": {
    "information":{
        "authors":"Kenemation",
        "name":"Race Rear Coilovers",
        "value":750,
    },
    "slotType" : "pab_v55_coilover_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_coilover_R", ["pab_v55_lowerarm_a_RR","pab_v55_lowerarm_a_RL","pab_v55_lowerarm_b_RR","pab_v55_lowerarm_b_RL","pab_v55_shocktop_R"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$springheight_R", "range", "+m", "Suspension", 0, -0.06, 0.04, "Spring Height", "Raise or lower the suspension height", {"stepDis":0.005, "subCategory":"Rear"}],
        ["$spring_R", "range", "N/m", "Suspension", 91000, 20000, 120000, "Spring Rate", "Spring stiffness", {"stepDis":500, "subCategory":"Rear"}]
        ["$damp_bump_R", "range", "N/m/s", "Suspension", 5500, 500, 10000, "Bump Damping", "Damper rate in compression", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_rebound_R", "range", "N/m/s", "Suspension", 15000, 500, 20000, "Rebound Damping", "Damper rate in extension", {"stepDis":100, "subCategory":"Rear"}]
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--REAR INDEPENDENT SUSPENSION--
         {"collision":true},
         {"selfCollision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //relocate for less toe change
         {"nodeWeight":4.5},
         ["rh3r",-0.680, 1.156, 0.32, {"group":"pab_v55_lowerarm_c_RR"}],
         ["rh3l", 0.680, 1.156, 0.32, {"group":"pab_v55_lowerarm_c_RL"}],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear springs without soft bumpstop
          {"beamType":"|NORMAL"},
          {"beamDeform":13000,"beamStrength":150000},
          {"beamSpring":"$spring_R","beamDamp":0},
          //IMPORTANT: if precompressionRange is ~= nil then it supersedes beamPrecompression.
          //The case() is for backwards compatibility for old configs containing the "rideheight_R" variable.
          //To change the base ride height, edit the springheight_R offset in the expression.
          ["rh1l","r1ll", {"beamPrecompression":"$=$rideheight_R","precompressionRange":"$=case($rideheight_R == nil, $springheight_R + 0.02, '')",
                  "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":1.0,"attackFactor":60,"volumeFactor":2.0,"decayFactor":80,"noiseFactor":0.01,"pitchFactor":1.0,"maxStress":2000}],

          ["rh1r","r1rr", {"beamPrecompression":"$=$rideheight_R", "precompressionRange":"$=case($rideheight_R == nil, $springheight_R + 0.02, '')",
                  "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":1.0,"attackFactor":60,"volumeFactor":2.0,"decayFactor":80,"noiseFactor":0.01,"pitchFactor":1.0,"maxStress":2000}],

          //dampers
          {"beamPrecompression":1, "beamType":"|BOUNDED","beamLongBound":1.0,"beamShortBound":1.0},
          {"beamLimitSpring":0,"beamLimitDamp":0},
          {"beamSpring":0,"beamDamp":"$damp_bump_R"},
          ["rh1l","r1ll", {"beamDampRebound":"$damp_rebound_R","beamDampVelocitySplit":0.3,"beamDampFast":"$=$damp_bump_R / 3","beamDampReboundFast":"$=$damp_rebound_R / 3","dampCutoffHz":500}],
          ["rh1r","r1rr", {"beamDampRebound":"$damp_rebound_R","beamDampVelocitySplit":0.3,"beamDampFast":"$=$damp_bump_R / 3","beamDampReboundFast":"$=$damp_rebound_R / 3","dampCutoffHz":500}],
          //bump and rebound stop
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":201000,"beamLimitDamp":2000},
          ["rh1r","r1rr", {"longBoundRange":0.03,"shortBoundRange":0.07,"boundZone":0.02,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          ["rh1l","r1ll", {"longBoundRange":0.03,"shortBoundRange":0.07,"boundZone":0.02,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_coilover_R_rally": {
    "information":{
        "authors":"Kenemation",
        "name":"Rally Rear Coilovers",
        "value":800,
    },
    "slotType" : "pab_v55_coilover_R",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["pab_v55_coilover_R", ["pab_v55_lowerarm_a_RR","pab_v55_lowerarm_a_RL","pab_v55_lowerarm_b_RR","pab_v55_lowerarm_b_RL","pab_v55_shocktop_R"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$springheight_R", "range", "+m", "Suspension", 0, -0.04, 0.06, "Spring Height", "Raise or lower the suspension height", {"stepDis":0.005, "subCategory":"Rear"}],
        ["$spring_R", "range", "N/m", "Suspension", 40000, 10000, 80000, "Spring Rate", "Spring stiffness", {"stepDis":500 ,"subCategory":"Rear"}]
        ["$damp_bump_R", "range", "N/m/s", "Suspension", 3000, 500, 10000, "Bump Damping", "Damper rate in slow compression", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_bump_R_fast", "range", "N/m/s", "Suspension", 2300, 500, 10000, "Fast Bump Damping", "Damper rate in fast compression", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_rebound_R", "range", "N/m/s", "Suspension", 4400, 500, 10000, "Rebound Damping", "Damper rate in extension", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_rebound_R_fast", "range", "N/m/s", "Suspension", 1500, 500, 10000, "Fast Rebound Damping", "Damper rate in fast extension", {"stepDis":100,"subCategory":"Rear"}]
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear springs without soft bumpstop
          {"beamType":"|NORMAL"},
          {"beamDeform":20000,"beamStrength":200000},
          {"beamSpring":"$spring_R","beamDamp":0},
          //IMPORTANT: if precompressionRange is ~= nil then it supersedes beamPrecompression.
          //The case() is for backwards compatibility for old configs containing the "rideheight_R" variable.
          //To change the base ride height, edit the springheight_R offset in the expression.
          ["rh1l","r1ll", {"beamPrecompression":"$=$rideheight_R", "precompressionRange":"$=case($rideheight_R == nil, $springheight_R + 0.102, '')",
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.5,"attackFactor":7,"volumeFactor":2.0,"decayFactor":9,"noiseFactor":0.01,"pitchFactor":0.7,"maxStress":2000}],

          ["rh1r","r1rr", {"beamPrecompression":"$=$rideheight_R", "precompressionRange":"$=case($rideheight_R == nil, $springheight_R + 0.102, '')",
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.5,"attackFactor":7,"volumeFactor":2.0,"decayFactor":9,"noiseFactor":0.01,"pitchFactor":0.7,"maxStress":2000}],

          //dampers
          {"beamPrecompression":1, "beamType":"|BOUNDED","beamLongBound":1.0,"beamShortBound":1.0},
          {"beamLimitSpring":0,"beamLimitDamp":0},
          {"beamSpring":0,"beamDamp":"$damp_bump_R"},
          //bump
          ["rh1l","r1ll", {"beamDampRebound":0,"beamDampVelocitySplit":0.3,"beamDampFast":"$damp_bump_R_fast","beamDampReboundFast":0,"dampCutoffHz":500}],
          ["rh1r","r1rr", {"beamDampRebound":0,"beamDampVelocitySplit":0.3,"beamDampFast":"$damp_bump_R_fast","beamDampReboundFast":0,"dampCutoffHz":500}],
          //rebound
          {"beamSpring":0,"beamDamp":0},
          ["rh1l","r1ll", {"beamDampRebound":"$damp_rebound_R","beamDampVelocitySplit":0.2,"beamDampFast":0,"beamDampReboundFast":"$damp_rebound_R_fast","dampCutoffHz":500}],
          ["rh1r","r1rr", {"beamDampRebound":"$damp_rebound_R","beamDampVelocitySplit":0.2,"beamDampFast":0,"beamDampReboundFast":"$damp_rebound_R_fast","dampCutoffHz":500}],
          //hydraulic bump stop
          {"beamSpring":0,"beamDamp":250},
          {"beamLimitSpring":8000,"beamLimitDamp":12000},
          ["rh1r","r1rr", {"longBoundRange":1,"shortBoundRange":0.035,"boundZone":0.01,"beamLimitDampRebound":1000,"dampCutoffHz":250}],
          ["rh1l","r1ll", {"longBoundRange":1,"shortBoundRange":0.035,"boundZone":0.01,"beamLimitDampRebound":1000,"dampCutoffHz":250}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_swaybar_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Rear Sway Bar",
        "value":200,
    },
    "slotType" : "pab_v55_swaybar_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_swaybar_R", ["pab_v55_upperarm_R", "pab_v55_uppermounts_R", "pab_v55_body"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //anti-roll
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"selfCollision":false},
         {"collision":true},
         {"nodeWeight":1.3},
         //rear anti-roll
         ["arbrr", -0.62000, 1.46011, 0.36000],
         ["arbrl", 0.62000, 1.46011, 0.36000],
         {"group":""},
    ],
    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        //17mm 133
        //18mm 168
        //19mm 208
        //20mm 255
        //21mm 311
        //22mm 374
        //23mm 447
        //24mm 530
        //25mm 623
        {"spring":133, "damp":10, "deform":10000, "strength":9999999},
        ["arbrr", "rx2r", "rx2l", "arbrl"],
    ],
    "beams": [
          ["id1:", "id2:"],
          //--ANTI-ROLL--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":2501000,"beamDamp":100},
          {"beamDeform":15000,"beamStrength":250000},
          //end links
          ["arbrr","rh4r"],
          ["arbrl","rh4l"],
          //rigids
          ["arbrr","rx5r"],
          ["arbrl","rx5l"],
          ["arbrr","rx5l"],
          ["arbrl","rx5r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_swaybar_R_sport": {
    "information":{
        "authors":"Kenemation",
        "name":"Sport Rear Sway Bar",
        "value":250,
    },
    "slotType" : "pab_v55_swaybar_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_swaybar_R", ["pab_v55_upperarm_R", "pab_v55_uppermounts_R", "pab_v55_body"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //anti-roll
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"selfCollision":false},
         {"collision":true},
         {"nodeWeight":1.5},
         //rear anti-roll
         ["arbrr", -0.62, 1.28, 0.36],
         ["arbrl", 0.62, 1.28, 0.36],
         {"group":""},
    ],
    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        //17mm 133
        //18mm 168
        //19mm 208
        //20mm 255
        //21mm 311
        //22mm 374
        //23mm 447
        //24mm 530
        //25mm 623
        {"spring":255, "damp":10, "deform":10000, "strength":9999999},
        ["arbrr", "rx2r", "rx2l", "arbrl"],
    ],
    "beams": [
          ["id1:", "id2:"],
          //--ANTI-ROLL--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":2501000,"beamDamp":100},
          {"beamDeform":15000,"beamStrength":250000},
          //end links
          ["arbrr","rh4r"],
          ["arbrl","rh4l"],
          //rigids
          ["arbrr","rx5r"],
          ["arbrl","rx5l"],
          ["arbrr","rx5l"],
          ["arbrl","rx5r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_swaybar_R_sport_RS": {
    "information":{
        "authors":"Kenemation",
        "name":"Sport RS Rear Sway Bar",
        "value":300,
    },
    "slotType" : "pab_v55_swaybar_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_swaybar_R", ["pab_v55_upperarm_R", "pab_v55_uppermounts_R", "pab_v55_body"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //anti-roll
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"selfCollision":false},
         {"collision":true},
         {"nodeWeight":1.6},
         //rear anti-roll
         ["arbrr", -0.62, 1.28, 0.36],
         ["arbrl", 0.62, 1.28, 0.36],
         {"group":""},
    ],
    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        //17mm 133
        //18mm 168
        //19mm 208
        //20mm 255
        //21mm 311
        //22mm 374
        //23mm 447
        //24mm 530
        //25mm 623
        {"spring":623, "damp":10, "deform":10000, "strength":9999999},
        ["arbrr", "rx2r", "rx2l", "arbrl"],
    ],
    "beams": [
          ["id1:", "id2:"],
          //--ANTI-ROLL--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":2501000,"beamDamp":100},
          {"beamDeform":15000,"beamStrength":250000},
          //end links
          ["arbrr","rh4r"],
          ["arbrl","rh4l"],
          //rigids
          ["arbrr","rx5r"],
          ["arbrl","rx5l"],
          ["arbrr","rx5l"],
          ["arbrl","rx5r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"pab_v55_swaybar_R_race": {
    "information":{
        "authors":"Kenemation",
        "name":"Race Rear Sway Bar",
        "value":600,
    },
    "slotType" : "pab_v55_swaybar_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_swaybar_R", ["pab_v55_upperarm_R", "pab_v55_uppermounts_R", "pab_v55_body"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //anti-roll
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"selfCollision":false},
         {"collision":true},
         {"nodeWeight":2.0},
         //rear anti-roll
         ["arbrr", -0.62, 1.28, 0.36],
         ["arbrl", 0.62, 1.28, 0.36],
         {"group":""},
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$arb_spring_R", "range", "N/m", "Suspension", 150000, 10000, 200000, "Anti-Roll Spring Rate", "Stiffness of the anti-roll bar, defined at the end links", {"stepDis":1000,"subCategory":"Rear"}]
    ],
    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        //motion ratio 0.5 (difference between real and jbeam sway bar)
        //arm length 0.21
        {"spring":"$=$arb_spring_R*0.21*0.21*0.5*0.5", "damp":10, "deform":5000, "strength":9999999},
        ["arbrr", "rx5r", "rx5l", "arbrl"],
    ],
    "beams": [
          ["id1:", "id2:"],
          //--ANTI-ROLL--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":2501000,"beamDamp":100},
          {"beamDeform":15000,"beamStrength":250000},
          //end links
          ["arbrr","rh4r"],
          ["arbrl","rh4l"],
          //rigids
          ["arbrr","rx5r"],
          ["arbrl","rx5l"],
          ["arbrr","rx5l"],
          ["arbrl","rx5r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
}