{
"survolt_brake_F": {
    "information":{
        "authors":"BeamNG",
        "name":"Carbon-Ceramic Front Disc Brakes",
        "value":3250,
    },
    "slotType" : "survolt_brake_F",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F_carbon","brakepad_F_carbon", "Front Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        //brake discs
        ["survolt_brakedisc_F_carbon", ["wheel_FR","wheelhub_FR"],        [], {"pos":{"x":-0.84,"y":-1.13522, "z":0.325845}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["survolt_brakedisc_F_carbon", ["wheel_FL","wheelhub_FL"],        [], {"pos":{"x": 0.84,"y":-1.13522, "z":0.325845}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
       // ["innocent_mod_brakeglow_survolt_FR", ["wheel_FR","wheelhub_FR"],        [], {"pos":{"x": -0.84,"y":-1.13522, "z":0.325845}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
       // ["innocent_mod_brakeglow_survolt_FL", ["wheel_FL","wheelhub_FL"],        [], {"pos":{"x": 0.84,"y":-1.13522, "z":0.325845}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],

    ],
    "controller": [
        ["fileName"],
        ["brakeGlow_fr", {"materialName": "@innocent_brakeglow_mod_survolt_fr", "textureWidth":512, "textureHeight":512, "htmlPath": "local://local/vehicles/survolt/brakeGlow/brakeglow_survolt_fr.html"}],
        ["brakeGlow_fl", {"materialName": "@innocent_brakeglow_mod_survolt_fl", "textureWidth":512, "textureHeight":512, "htmlPath": "local://local/vehicles/survolt/brakeGlow/brakeglow_survolt_fl.html"}],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$brakebias", "range", "", "Brakes", 0.6, 0, 1, "Front/Rear 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*5333*$brakebias"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":120},
        {"padMaterial":"carbon-ceramic", "padGlazingSusceptibility":0.0},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.36},
        {"brakeMass":4.25},
        {"brakeType":"carbon-ceramic-vented-disc"},
        {"rotorMaterial":"carbon-ceramic"},
        {"brakeVentingCoef":1.3},
        {"absSlipRatioTarget":0.18},

        //hub
        //general settings
        {"hubRadius":0.18},
        {"wheelOffset":0.0},
        {"hubWidth":0.05},
        {"numRays":5},

        //hub options
        {"hubTreadBeamSpring":1128940, "hubTreadBeamDamp":5.64},
        {"hubPeripheryBeamSpring":1128940, "hubPeripheryBeamDamp":5.64},
        {"hubSideBeamSpring":2256940, "hubSideBeamDamp":5.64},
        {"hubNodeWeight":0.6},
        {"hubNodeMaterial":"|NM_METAL"},
        {"hubFrictionCoef":0.2},
        {"hubBeamDeform":45500, "hubBeamStrength":87500},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.5}
    ],
},
"survolt_brake_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Carbon-Ceramic Rear Disc Brakes",
        "value":1100,
    },
    "slotType" : "survolt_brake_R",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_R_carbon","brakepad_R_carbon", "Rear Brake Pads", {"coreSlot":true}],
    ],
    "controller": [
        ["fileName"],
        ["brakeGlow_rr", {"materialName": "@innocent_brakeglow_mod_survolt_rr", "textureWidth":512, "textureHeight":512, "htmlPath": "local://local/vehicles/survolt/brakeGlow/brakeglow_survolt_rr.html"}],
        ["brakeGlow_rl", {"materialName": "@innocent_brakeglow_mod_survolt_rl", "textureWidth":512, "textureHeight":512, "htmlPath": "local://local/vehicles/survolt/brakeGlow/brakeglow_survolt_rl.html"}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        //brake discs
        ["survolt_brakedisc_R_carbon", ["wheel_RR","wheelhub_RR"],        [], {"pos":{"x":-0.84,"y":1.2108, "z":0.325845}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["survolt_brakedisc_R_carbon", ["wheel_RL","wheelhub_RL"],        [], {"pos":{"x": 0.84,"y":1.2108, "z":0.325845}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
       // ["innocent_mod_brakeglow_survolt_RR", ["wheel_RR","wheelhub_RR"],        [], {"pos":{"x":-0.84,"y":1.2108, "z":0.325845}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
       // ["innocent_mod_brakeglow_survolt_RL", ["wheel_RL","wheelhub_RL"],        [], {"pos":{"x": 0.84,"y":1.2108, "z":0.325845}, "scale":{"x":1.0,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakebias == nil and $brakestrength*2150 or $brakestrength*5333*(1-$brakebias)"},
        {"brakeInputSplit":0.65},
        {"brakeSplitCoef":0.45},
        {"parkingTorque":2500},
        {"brakeSpring":120},
        {"padMaterial":"carbon-ceramic", "padGlazingSusceptibility":0.0},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.32},
        {"brakeMass":3.2},
        {"brakeType":"carbon-ceramic-vented-disc"},
        {"rotorMaterial":"carbon-ceramic"},
        {"brakeVentingCoef":1.1},
        {"absSlipRatioTarget":0.14},
        //hub
        //general settings
        {"hubRadius":0.18},
        {"wheelOffset":0.0},
        {"hubWidth":0.05},
        {"numRays":5},

        //hub options
        {"hubTreadBeamSpring":1128940, "hubTreadBeamDamp":5.64},
        {"hubPeripheryBeamSpring":1128940, "hubPeripheryBeamDamp":5.64},
        {"hubSideBeamSpring":2256940, "hubSideBeamDamp":5.64},
        {"hubNodeWeight":0.6},
        {"hubNodeMaterial":"|NM_METAL"},
        {"hubFrictionCoef":0.2},
        {"hubBeamDeform":45500, "hubBeamStrength":87500},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
}