{
"MG7KEN_brake_F": {
    "information":{
        "authors":"Kenemation",
        "name":"Front Disc Brakes",
        "value":4100,
    },
    "slotType" : "MG7KEN_brake_F",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F","brakepad_F_race", "Front Brake Pads", {"coreSlot":true}],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        //["$braketorque_F", "range", "", "Brakes", 2400, 0, 4000, "Front Brake Torque", "Strength of the front brakes", {"minDis":0}]
        //["$braketorque", "range", "", "Brakes", 5000, 2000, 6000, "Max Brake Torque", "Scales the overall brake torque", {"minDis":0}]
        ["$brakebias", "range", "", "Brakes", 0.68, 0, 1, "Front/Rear Bias", "Percent of brake torque to the front wheels", {"minDis":0, "maxDis":100}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        //brake discs
        ["brake_hub_5l", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.73,"y":-1.40, "z":0.31}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.73,"y":-1.40, "z":0.31}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["MG7KEN_rotor", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.775,"y":-1.40, "z":0.31}, "scale":{"x":1,"y":1,"z":1}, "rot":{"x":0,"y":180,"z":0}}],
        ["MG7KEN_rotor", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.775,"y":-1.40, "z":0.31}, "scale":{"x":1,"y":1,"z":1}, "rot":{"x":180,"y":180,"z":180}}],
        ["MG7KEN_caliper_F", ["MG7KEN_hub_F","wheelhub_FR"], [], {"pos":{"x":-0.775,"y":-1.40, "z":0.31}, "scale":{"x":1,"y":1,"z":1}, "rot":{"x":-180,"y":0,"z":180}}],
        ["MG7KEN_caliper_F", ["MG7KEN_hub_F","wheelhub_FL"], [], {"pos":{"x":0.775,"y":-1.40, "z":0.31}, "scale":{"x":1,"y":1,"z":1}, "rot":{"x":180,"y":180,"z":180}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes

        {"brakeTorque":"$=$brakestrength*5000*$brakebias"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":150},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.375},
        {"brakeMass":11},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.5},
        //abs
        {"absSlipRatioTarget":0.2},
        //brake sounds
        {"squealCoefNatural": 1.0, "squealCoefLowSpeed": 1.0}
    ],
},
"MG7KEN_brake_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Rear Disc Brakes",
        "value":4000,
    },
    "slotType" : "MG7KEN_brake_R",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_R","brakepad_R_race", "Rear Brake Pads", {"coreSlot":true}],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        //["$braketorque_R", "range", "", "Brakes", 2000, 0, 4000, "Rear Brake Torque", "Strength of the rear brakes", {"minDis":0}]
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        //brake discs
        ["brake_hub_5l", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.76,"y":1.38, "z":0.36}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x":0.76,"y":1.38, "z":0.36}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["MG7KEN_rotor", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.765,"y":1.38, "z":0.36}, "scale":{"x":1,"y":1,"z":1}, "rot":{"x":0,"y":0,"z":180}}],
        ["MG7KEN_rotor", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x":0.765,"y":1.38, "z":0.36}, "scale":{"x":1,"y":1,"z":1}, "rot":{"x":180,"y":0,"z":0}}],
        ["MG7KEN_caliper_R", ["MG7KEN_hub_R","wheelhub_RR"], [], {"pos":{"x":-0.765,"y":1.38, "z":0.36}, "scale":{"x":1,"y":1,"z":1}, "rot":{"x":-180,"y":0,"z":180}}],
        ["MG7KEN_caliper_R", ["MG7KEN_hub_R","wheelhub_RL"], [], {"pos":{"x":0.765,"y":1.38, "z":0.36}, "scale":{"x":1,"y":1,"z":1}, "rot":{"x":180,"y":180,"z":180}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes

        //if no race front brake, use default value
        //{"brakeTorque":"$=case($brakebias == nil, $brakestrength*1500, $brakestrength*5000*(1-$brakebias))"},
        {"brakeTorque":"$=$brakebias == nil and $brakestrength*1500 or $brakestrength*5000*(1-$brakebias)"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":1800},
        {"brakeSpring":150},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.345},
        {"brakeMass":6.25},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.1},
        //abs
        {"absSlipRatioTarget":0.13},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
"MG7KEN_ABS": {
    "information":{
        "authors":"Kenemation",
        "name":"Anti-Lock Braking System",
        "value":420,
    },
    "slotType":"MG7KEN_ABS",
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"enableABS":true},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
}
