{
"ARaz1_windshield": {
    "information":{
        "authors":"BeamNG",
        "name":"Windshield",
        "value":400,
    },
    "slotType" : "ARaz1_windshield",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         //glass
         {"deformGroup":"windshield_break", "deformMaterialBase":"ARaz1_windshield", "deformMaterialDamaged":"ARaz1_glass_dmg"},
         ["ARaz1_windshield", ["ARaz1_windshield"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>impact_glass_windscreen_01", "deformVolume":0.7}],
         {"deformGroup":""},
         ["ARaz1_wipers", ["ARaz1_body", "ARaz1_engine_bay"]],
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.12
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         {"nodeWeight":2.3},
         {"group":["ARaz1_windshield","gps"]},
         ["wi1", 0.00000, -0.74317, 0.92110],
         {"nodeMaterial":"|NM_METAL"},

         //--ADD WEIGHT--

         //windshield
         //a pillar
         {"nodeWeight":2.4},
         ["p1r", -0.58774, -0.73843, 0.76312, {"group":["ARaz1_body","ARaz1_windshield","gps"]}],//weight added by glass
         ["p1l", 0.58774, -0.73843, 0.76312, {"group":["ARaz1_body","ARaz1_windshield","gps"]}],//weight added by glass
         //roof
         {"nodeWeight":2.7},
         ["rf1r", -0.45431, -0.31872, 1.04577, {"group":["ARaz1_body","ARaz1_windshield","gps"]}],//weight added by glass
         ["rf1", 0.00000, -0.36431, 1.09458, {"nodeWeight":1.2,"group":["ARaz1_body","ARaz1_windshield","gps"]}],//weight added by glass
         ["rf1l", 0.45431, -0.31872, 1.04577, {"group":["ARaz1_body","ARaz1_windshield","gps"]}],//weight added by glass
         //firewall
         {"nodeWeight":4.2},
         {"group":"ARaz1_engine_bay"},
         ["f6rr", -0.58868, -0.82562, 0.72354, {"group":["ARaz1_dash","ARaz1_body","ARaz1_windshield","gps"]}],//weight added by glass
         ["f6r", -0.32004, -1.14167, 0.72354, {"group":["ARaz1_dash","ARaz1_body","ARaz1_windshield","gps","ARaz1_strutbar"]}],//weight added by glass
         ["f6l", 0.32004, -1.14167, 0.72354, {"group":["ARaz1_dash","ARaz1_body","ARaz1_windshield","gps","ARaz1_strutbar"]}],//weight added by glass
         ["f6ll", 0.58868, -0.82562, 0.72354, {"group":["ARaz1_dash","ARaz1_body","ARaz1_windshield","gps"]}],//weight added by glass
         {"group":""},
         //windshield 12kg, rear windshield 10kg, sedan window 3kg, coupe window 4kg
    ],
    "beams": [
          ["id1:", "id2:"],
          //weak windshield beams
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":1470600,"beamDamp":120},
          {"beamDeform":8500,"beamStrength":"FLT_MAX"},
          {"deformGroup":"windshield_break","deformationTriggerRatio":0.03},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformLimitExpansion":""},
          ["rf1","wi1"],
          ["rf1r","wi1"],
          ["rf1l","wi1"],
          ["wi1","f6r"],
          ["wi1","f6l"],
          ["wi1","p1r"],
          ["wi1","p1l"],
          ["wi1","f6rr"],
          ["wi1","f6ll"],

          ["wi1","p2rr"],
          ["wi1","p2ll"],

          {"beamDeform":4500,"beamStrength":13500},
          ["rf1","f6r"],
          ["rf1","f6l"],

          ["p1r","p1l"],

          ["rf1r","f6r"],
          ["rf1l","f6l"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //windshield
            {"groundModel":"glass"},
            {"dragCoef":3},
            {"group":"ARaz1_roof"},
            ["rf1","p1r","f6r"],
            ["rf1","f6l","p1l"],
            ["rf1","f6r","f6l"],
            {"dragCoef":0},
            {"group":""},
    ],
},
"ARaz1_backlight": {
    "information":{
        "authors":"BeamNG",
        "name":"Backlight",
        "value":200,
    },
    "slotType" : "ARaz1_backlight",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         //glass
         {"deformGroup":"backlight_break", "deformMaterialBase":"ARaz1_glass", "deformMaterialDamaged":"invis"},
         ["ARaz1_backlight", ["ARaz1_body"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>impact_glass_windscreen_01", "deformVolume":0.8}],
         {"deformGroup":"backlight_break", "deformMaterialBase":"ARaz1_glass_int", "deformMaterialDamaged":"ARaz1_glass_dmg"},
         ["ARaz1_backlight_int", ["ARaz1_body"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.12
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},

         //rear windshield
         {"group":"ARaz1_body"},
         //c pillar
         {"nodeWeight":2.4},
       //  ["p10r", -0.61, 1.25, 1.11],
      //   ["p10l", 0.61, 1.25, 1.11],
         //roof
         {"nodeWeight":2.7},
         ["r4r", -0.33063, 1.44303, 0.61796,{"nodeWeight":2}],
         ["r4", 0.00000, 1.45303, 0.61796,{"nodeWeight":2}],
         ["r4l", 0.33063, 1.44303, 0.61796,{"nodeWeight":2}],
         //base of rear window/trunk
         {"nodeWeight":3.5},
            ["rf5r", -0.55749, 0.76019, 0.88575],
            ["rf5", 0.00000, 0.88223, 0.89995],
            ["rf5l", 0.55749, 0.76019, 0.88575],
         {"group":""},
         //windshield 12kg, rear windshield 10kg, sedan window 3kg, coupe window 4kg
    ],
    "beams": [
          ["id1:", "id2:"],
          //brittle glass beams
          {"beamSpring":1470600,"beamDamp":60},
          {"beamDeform":6500,"beamStrength":2500},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformGroup":"backlight_break", "deformationTriggerRatio":0.03},
          {"breakGroup":"backlight"},
          {"deformLimitExpansion":""},
          ["rf4","rf5"],
          ["rf4","rf5"],
          ["rf4","rf5r"],
          ["rf4r","rf5"],
          ["rf4l","rf5"],

          ["tb1r","rf4l"],
          ["tb1l","rf4r"],
          ["p10r","p10l"],

          ["p10r","rf4l"],
          ["p10r","rf5l"],
          ["p10l","rf4r"],
          ["p10l","rf5r"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //backlight
            {"groundModel":"glass"},
            {"group":"ARaz1_roof"},
            {"breakGroup":"backlight"},
            {"dragCoef":5},
            ["rf4","p10l","tb1"],
            ["rf4","tb1","p10r"],
            {"breakGroup":""},
            {"dragCoef":0},
            {"group":""},
    ],
},
"ARaz1_doorglass_FR": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Right Door Glass",
        "value":50,
    },
    "slotType" : "ARaz1_doorglass_R_hardtop",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_FR_break", "deformMaterialBase":"ARaz1_glass", "deformMaterialDamaged":"ARaz1_glass_dmg"},
         ["ARaz1_doorglass_R", ["ARaz1_door_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.7}],
         {"deformGroup":"doorglass_FR_break", "deformMaterialBase":"ARaz1_glass_int", "deformMaterialDamaged":"ARaz1_glass_dmg"},
         ["ARaz1_doorglass_FR_int", ["ARaz1_door_FR"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.04
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //front right door glass
         {"nodeWeight":1.70},
         {"collision":true},
         {"selfCollision":true},
         {"group":"ARaz1_door_FR"},
         ["d7r", -0.65950, -0.78376, 0.72127],
         ["d8r", -0.66339, -0.26127, 0.72331, {"selfCollision":false}],
         ["d9r", -0.65696, 0.33845, 0.72750],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":1401000,"beamDamp":60},
          {"beamDeform":7000,"beamStrength":6000},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformGroup":"doorglass_FR_break", "deformationTriggerRatio":0.02},
          {"breakGroup":"doorglass_FR"},
          {"deformLimitExpansion":""},
          ["d11r","d8r"],
          ["d12r","d8r"],
          ["d10r","d13r"],
          ["d10r","d9r"],
          ["d13r","d7r"],
          ["d9r","d11r"],
          ["d7r","d11r"],
          ["d9r","d12r"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.1},
    ],
},
"ARaz1_doorglass_FL": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Left Door Glass",
        "value":50,
    },
    "slotType" : "ARaz1_doorglass_L_hardtop",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_FL_break", "deformMaterialBase":"ARaz1_glass", "deformMaterialDamaged":"ARaz1_glass_dmg"},
         ["ARaz1_doorglass_L", ["ARaz1_door_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound6", "deformVolume":0.7}],
         {"deformGroup":"doorglass_FL_break", "deformMaterialBase":"ARaz1_glass_int", "deformMaterialDamaged":"ARaz1_glass_dmg"},
         ["ARaz1_doorglass_FL_int", ["ARaz1_door_FL"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.04
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //front left door glass
         {"nodeWeight":1.70},
         {"collision":true},
         {"selfCollision":true},
         {"group":"ARaz1_door_FL"},
         ["d7l", 0.65260, -0.78376, 0.72127],
         ["d8l", 0.66380, -0.26127, 0.72331, {"selfCollision":false}],
         ["d9l", 0.66358, 0.33845, 0.72750],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":1401000,"beamDamp":60},
          {"beamDeform":7000,"beamStrength":6000},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformGroup":"doorglass_FL_break", "deformationTriggerRatio":0.02},
          {"breakGroup":"doorglass_FL"},
          {"deformLimitExpansion":""},
          ["d11l","d8l"],
          ["d12l","d8l"],
          ["d10l","d13l"],
          ["d10l","d9l"],
          ["d13l","d7l"],
          ["d9l","d11l"],
          ["d7l","d11l"],
          ["d9l","d12l"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.1},
    ],
},
}