{
"kzn_ws6_brake_F_4": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Front Disc Brakes",
        "value":210,
    },
    "slotType" : "kzn_ws6_brake_F_4",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F","brakepad_F_premium", "Front Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_4l", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.5,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_4l", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.5,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_plain", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.9,"y":0.95,"z":0.95}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_plain", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.9,"y":0.95,"z":0.95}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_standard_plain", ["kzn_ws6_hub_F","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.9,"y":0.8,"z":0.95}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_caliper_standard_plain", ["kzn_ws6_hub_F","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.9,"y":0.8,"z":0.95}, "rot":{"x":0,"y":180,"z":0}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakestrength*1600"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.25},
        {"brakeMass":6.0},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.0},
        //abs
        {"absSlipRatioTarget":0.2},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
"kzn_ws6_brake_F": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Front Disc Brakes",
        "value":250,
    },
    "slotType" : "kzn_ws6_brake_F",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F","brakepad_F_premium", "Front Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_5l", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.8,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.8,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_plain", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_plain", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_standard_plain", ["kzn_ws6_hub_F","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":0.9,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_caliper_standard_plain", ["kzn_ws6_hub_F","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":0.9,"z":1.0}, "rot":{"x":0,"y":180,"z":0}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakestrength*1600"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.25},
        {"brakeMass":6.0},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.0},
        //abs
        {"absSlipRatioTarget":0.2},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
"kzn_ws6_brake_F_sport": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Type-LS Front Disc Brakes",
        "value":350,
    },
    "slotType" : "kzn_ws6_brake_F",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F","brakepad_F_sport", "Front Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_5l", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.8,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.8,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_plain", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.07,"z":1.07}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_plain", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.07,"z":1.07}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_4pot_plain", ["kzn_ws6_hub_F","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_caliper_4pot_plain", ["kzn_ws6_hub_F","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":180,"z":0}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakestrength*1600"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.26},
        {"brakeMass":6.5},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.0},
        //abs
        {"absSlipRatioTarget":0.2},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.5}
    ],
},
"kzn_ws6_brake_F_race": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Race Front Disc Brakes",
        "value":1100,
    },
    "slotType" : "kzn_ws6_brake_F",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F","brakepad_F_race", "Front Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_5l", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.8,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":0.8,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_drilled", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_drilled", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_6pot_red_rotopad", ["kzn_ws6_hub_F","wheelhub_FR"], [], {"pos":{"x":-0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.02,"z":1.02}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_caliper_6pot_red_rotopad", ["kzn_ws6_hub_F","wheelhub_FL"], [], {"pos":{"x":0.70,"y":-1.245,"z":0.35}, "scale":{"x":1.0,"y":1.02,"z":1.02}, "rot":{"x":0,"y":180,"z":0}}],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        //["$braketorque", "range", "", "Brakes", 3300, 0, 5000, "Brake Torque", "Scales the overall brake torque", {"minDis":0}]
        ["$brakebias", "range", "", "Brakes", 0.72 , 0, 1, "Brake Bias", "Percent of brake torque to the front wheels", {"minDis":0, "maxDis":100}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakestrength*3400*$brakebias"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.31},
        {"brakeMass":7.5},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.5},
        //abs
        {"absSlipRatioTarget":0.2},
        //brake sounds
        {"squealCoefNatural": 1.0, "squealCoefLowSpeed": 1.0}
    ],
},
"kzn_ws6_brake_R_adjustable4link": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Rear Drum Brakes",
        "value":200,
    },
    "slotType" : "kzn_ws6_brake_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_R","brakepad_R", "Rear Brake Shoes", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        //brake drums
        //["kzn_ws6_brakedrum_RR_adjustable4linkv2", ["kzn_ws6_A_axle_R","kzn_ws6_A_shockbottom_R","kzn_ws6_A_springbottom_R","wheelhub_RR"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
        //["kzn_ws6_brakedrum_RL_adjustable4linkv2", ["kzn_ws6_A_axle_R","kzn_ws6_A_shockbottom_R","kzn_ws6_A_springbottom_R","wheelhub_RL"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
        //["kzn_ws6_spindle_RR_adjustable4linkv2", ["wheel_RR","wheelhub_RR"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
        //["kzn_ws6_spindle_RL_adjustable4linkv2", ["wheel_RL","wheelhub_RL"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"enableABS":false},
        {"brakeTorque":"$=$brakestrength*1250"},
        {"brakeInputSplit":0.5},
        {"brakeSplitCoef":0.5},
        {"parkingTorque":1700},
        {"brakeSpring":150},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.27},
        {"brakeMass":5.0},
        {"brakeType":"drum"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":0.8},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
"kzn_ws6_brake_R_race_adjustable4link": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Race Rear Drum Brakes",
        "value":800,
    },
    "slotType" : "kzn_ws6_brake_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_R","brakepad_R_race", "Rear Brake Shoes", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        //brake drums
        //["kzn_ws6_brakedrum_RR_adjustable4linkv2", ["kzn_ws6_A_axle_R","kzn_ws6_A_shockbottom_R","kzn_ws6_A_springbottom_R","wheelhub_RR"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
        //["kzn_ws6_brakedrum_RL_adjustable4linkv2", ["kzn_ws6_A_axle_R","kzn_ws6_A_shockbottom_R","kzn_ws6_A_springbottom_R","wheelhub_RL"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
        //["kzn_ws6_spindle_RR_adjustable4linkv2", ["wheel_RR","wheelhub_RR"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
        //["kzn_ws6_spindle_RL_adjustable4linkv2", ["wheel_RL","wheelhub_RL"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        //["$braketorque_R", "range", "", "Brakes", 1500, 0, 3000, "Rear Brake Torque", "Strength of the rear brakes", {"minDis":0}]
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"enableABS":false},
        //if no race front brake, use default value
        //{"brakeTorque":"$=case($brakebias == nil, $brakestrength*1000, $brakestrength*5000*(1-$brakebias))"},
        {"brakeTorque":"$=$brakebias == nil and $brakestrength*1000 or $brakestrength*5000*(1-$brakebias)"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":2200},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.28},
        {"brakeMass":5.5},
        {"brakeType":"drum"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.2},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
"kzn_ws6_brake_R_drag_adjustable4link": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Drag Race Rear Drum Brakes",
        "value":1300,
    },
    "slotType" : "kzn_ws6_brake_R_adjustable4link",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_R","brakepad_R_semi_race", "Rear Brake Shoes", {"coreSlot":true}],
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         //brake drums
         //["kzn_ws6_brakedrum_RR_adjustable4linkv2", ["kzn_ws6_A_axle_R","kzn_ws6_A_shockbottom_R","kzn_ws6_A_springbottom_R","wheelhub_RR"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
         //["kzn_ws6_brakedrum_RL_adjustable4linkv2", ["kzn_ws6_A_axle_R","kzn_ws6_A_shockbottom_R","kzn_ws6_A_springbottom_R","wheelhub_RL"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
         //["kzn_ws6_spindle_RR_adjustable4linkv2", ["wheel_RR","wheelhub_RR"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
         //["kzn_ws6_spindle_RL_adjustable4linkv2", ["wheel_RL","wheelhub_RL"],[],{"pos":{"x":0,"y":0,"z":0}, "scale":{"x":0.9, "y":1, "z":1}}],
    ],
    "pressureWheels": [
            ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
            //brakes
            {"enableABS":false},
            {"brakeTorque":4000},
            {"brakeInputSplit":1},
            {"brakeSplitCoef":1},
            {"parkingTorque":4000},
            {"brakeSpring":100},

            //brake thermals
            {"enableBrakeThermals":true},
            {"brakeDiameter":0.27},
            {"brakeMass":5.0},
            {"brakeType":"drum"},
            {"rotorMaterial":"steel"},
            {"brakeVentingCoef":0.9},
        //brake sounds
        {"squealCoefNatural": 1.0, "squealCoefLowSpeed": 1.0}
    ],
},
"kzn_ws6_ABS": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Anti-Lock Braking System",
        "value":200,
    },
    "slotType":"kzn_ws6_ABS",
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"enableABS":true},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
}