{
"survolt_windshield": {
    "information":{
        "authors":"BeamNG",
        "name":"Windshield",
        "value":1200,
    },
    "slotType" : "survolt_windshield",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],

         {"deformGroup":"windshield_break", "deformMaterialBase":"survolt_glass", "deformMaterialDamaged":"survolt_windshield_dmg"},
         ["survolt_windshield_roof", ["survolt_chassis"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>impact_glass_windscreen_01", "deformVolume":0.7}],
         {"deformGroup":"windshield_break", "deformMaterialBase":"survolt_glass_int", "deformMaterialDamaged":"survolt_glass_int"},
         //["survolt_windshield_int", ["survolt_windshield"]],
         {"deformGroup":"windshield_break", "deformMaterialBase":"glass_invisible", "deformMaterialDamaged":"glass_mirror"},
         ["survolt_windshield_dmg", ["survolt_body"]],
         {"deformGroup":""},
         //["survolt_wiper", ["survolt_windshield"]],
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.12
    }
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         {"nodeWeight":2.0},
         {"group":["survolt_windshield_roof"]},
         //windshield node
         ["wi1", 0.00000, -0.58914, 0.93240],
         {"group":""},


    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //windshield
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"beamSpring":1920800,"beamDamp":172},
          {"beamDeform":6000,"beamStrength":"FLT_MAX"},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformGroup":"windshield_break","deformationTriggerRatio":0.02},
          {"deformLimitExpansion":""},
            ["rf1r", "f6r"],
            ["rf1l", "f6l"],
            ["rf1l", "f6r"],
            ["rf1r", "f6l"],
            ["f6rrr", "rf1r"],
            ["f6lll", "rf1l"],
            ["rf1rr", "rf2r"],
            ["rf2rr", "rf1r"],
            ["rf1r", "rf2l"],
            ["rf2r", "rf1l"],
            ["rf1l", "rf2ll"],
            ["rf2l", "rf1ll"],
            ["rf3rr", "rf4r"],
            ["rf4rr", "rf3r"],
            ["rf3l", "rf4ll"],
            ["rf4l", "rf3ll"],

            ["rf4ll", "rf5l"],
            ["rf4l", "rf5ll"],
            ["rf4r", "rf5rr"],
            ["rf4rr", "rf5r"],

            ["rf1ll", "f8l"],
            ["rf1l", "f8l"],
            ["rf1rr", "f8r"],
            ["rf1r", "f8r"],
            ["rf3r", "f8r"],
            ["rf3rr", "f8r"],
            ["rf4r", "f8r"],
            ["rf4rr", "f8r"],
            ["rf3l", "f8l"],
            ["rf3ll", "f8l"],
            ["rf4l", "f8l"],
            ["rf4ll", "f8l"],

            ["wi1", "rf1r"],
            ["wi1", "rf1l"],
            ["wi1", "f6r"],
            ["wi1", "f6l"],
            ["wi1", "f6rr"],
            ["wi1", "f6ll"],
            ["wi1", "f6lll"],
            ["wi1", "f6rrr"],
            ["wi1", "rf2r"],
            ["wi1", "rf2l"],
            ["wi1", "rf2rr"],
            ["wi1", "rf2ll"],
            ["wi1", "rf3rr"],
            ["wi1", "rf3ll"],
            ["wi1", "rf3l"],
            ["wi1", "rf3r"],


          {"breakGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformGroup":""},
          {"deformLimitExpansion":1.2},
    ],
},
"survolt_doorglass_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Right Door Glass",
        "value":70,
    },
    "slotType" : "survolt_doorglass_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_R_break", "deformMaterialBase":"survolt_glass", "deformMaterialDamaged":"survolt_glass_dmg"},
         ["survolt_doorglass_R", ["survolt_windowframe_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"doorglass_R_break", "deformMaterialBase":"survolt_glass_int", "deformMaterialDamaged":"survolt_glass_dmg"},
         //["survolt_door_window_R_int", ["survolt_door_R", "survolt_windowframe_R"]],
         {"deformGroup":""},
    ],
    "doorRCoupler":{
        "$+openForceMagnitude": 20,
        "$+closeForceMagnitude":-20,
    }
    "sounds": {
        "$+cabinFilterCoef": 0.04
    }
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //--RIGHT DOOR--
         {"collision":true},
         {"selfCollision":true},
         {"group":"survolt_windowframe_R"},
         {"nodeWeight":2.5},

         //window frame
         {"group":"survolt_windowframe_R"},
         ["d10r", -0.62250, -0.35750, 0.89990],
         ["d11r", -0.57310, -0.12550, 0.99370],
         ["d12r", -0.54530, 0.21750, 1.02960],
         ["d13r", -0.50410, 0.61670, 0.99550],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":1101000,"beamDamp":80},
          {"beamDeform":8000,"beamStrength":14000},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"breakGroup":"doorglass_R", "deformGroup":"doorglass_R_break", "deformationTriggerRatio":0.005},
          {"deformLimitExpansion":""},
          ["d9r", "d11r"],
          ["d13r", "d7r"],
          ["d10r", "d9r"],
          ["d8r", "d11r"],
          ["d12r", "d8r"],
          ["d12r", "d7r"],
          {"breakGroup":"", "deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
"survolt_doorglass_L": {
    "information":{
        "authors":"BeamNG",
        "name":"Left Door Glass",
        "value":70,
    },
    "slotType" : "survolt_doorglass_L",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_L_break", "deformMaterialBase":"survolt_glass", "deformMaterialDamaged":"survolt_glass_dmg"},
         ["survolt_doorglass_L", ["survolt_windowframe_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"doorglass_L_break", "deformMaterialBase":"survolt_glass_int", "deformMaterialDamaged":"survolt_glass_dmg"},
         //["survolt_door_window_L_int", ["survolt_door_L", "survolt_windowframe_L"]],
         {"deformGroup":""},
    ],
     "doorLCoupler":{
        "$+openForceMagnitude": 20,
        "$+closeForceMagnitude":-20,
    }
    "sounds": {
        "$+cabinFilterCoef": 0.04
    }
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //--LEFT DOOR--
         {"collision":true},
         {"selfCollision":true},
         {"nodeWeight":2.5},

         //window frame
         {"group":"survolt_windowframe_L"},
         ["d10l", 0.62250, -0.35750, 0.89990],
         ["d11l", 0.57310, -0.12550, 0.99370],
         ["d12l", 0.54530, 0.21750, 1.02960],
         ["d13l", 0.50410, 0.61670, 0.99550],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":1101000,"beamDamp":80},
          {"beamDeform":8000,"beamStrength":14000},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"breakGroup":"doorglass_L", "deformGroup":"doorglass_L_break", "deformationTriggerRatio":0.005},
          {"deformLimitExpansion":""},
          ["d9l", "d11l"],
          ["d13l", "d7l"],
          ["d10l", "d9l"],
          ["d8l", "d11l"],
          ["d12l", "d8l"],
          ["d12l", "d7l"],
          {"breakGroup":"", "deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
"survolt_sideglass_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Right Quarter Glass",
        "value":30,
    },
    "slotType" : "survolt_sideglass_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"quarterglass_R_break", "deformMaterialBase":"survolt_glass", "deformMaterialDamaged":"survolt_glass_dmg"},
         ["survolt_sideglass_R", ["survolt_chassis"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"quarterglass_R_break", "deformMaterialBase":"survolt_glass_int", "deformMaterialDamaged":"survolt_glass_dmg"},
         //["survolt_sideglass_R_int", ["survolt_chassis"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.01
    }
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //quarterglass
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"beamSpring":1020800,"beamDamp":172},
          {"beamDeform":6000,"beamStrength":"FLT_MAX"},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformGroup":"quarterglass_R_break","deformationTriggerRatio":0.02},
          {"deformLimitExpansion":""},
            ["f10rr", "rf5rr"],
            ["rf4rr", "f10r"],
            ["f10r", "rp1rr"],
            ["rf5rr", "qp3r"],
            ["qp3r", "rp2r"],
            ["rp1rr", "rp2r"],
            ["f3rr", "rp2rr"],
            ["qp3r", "rp2rr"],
          {"breakGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformGroup":""},
          {"deformLimitExpansion":1.2},
    ],
},
"survolt_sideglass_L": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Left Quarter Glass",
        "value":30,
    },
    "slotType" : "survolt_sideglass_L",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"quarterglass_L_break", "deformMaterialBase":"survolt_glass", "deformMaterialDamaged":"survolt_glass_dmg"},
         ["survolt_sideglass_L", ["survolt_body", "survolt_chassis"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"quarterglass_L_break", "deformMaterialBase":"survolt_glass_int", "deformMaterialDamaged":"survolt_glass_dmg"},
         //["survolt_sideglass_L_int", ["survolt_body", "survolt_chassis"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.01
    }
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //quarterglass
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"beamSpring":1020800,"beamDamp":172},
          {"beamDeform":6000,"beamStrength":"FLT_MAX"},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformGroup":"quarterglass_L_break","deformationTriggerRatio":0.02},
          {"deformLimitExpansion":""},
            ["f10ll", "rf5ll"],
            ["rf4ll", "f10l"],
            ["f10l", "rp1ll"],
            ["rf5ll", "qp3l"],
            ["qp3l", "rp2l"],
            ["rp1ll", "rp2l"],
            ["f3rr", "rp2ll"],
            ["qp3l", "rp2ll"],

          {"breakGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformGroup":""},
          {"deformLimitExpansion":1.2},
    ],
},
}