{
"nix_97dakota_windshield": {
    "information":{
        "authors":"BeamNG",
        "name":"Windshield",
        "value":350,
    },
    "slotType" : "nix_97dakota_windshield",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
		 //glass
         {"deformGroup":"windshield_break", "deformMaterialBase":"pickup_glass", "deformMaterialDamaged":"pickup_windshield_dmg"},
         ["nix_97dakota_windshield", ["pickup_windshield"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>impact_glass_windscreen_01", "deformVolume":0.7}],
		 {"deformGroup":"windshield_break", "deformMaterialBase":"pickup_glass_int", "deformMaterialDamaged":"pickup_windshield_dmg"},
         ["nix_97dakota_windshield_int", ["pickup_windshield"]],
         {"deformGroup":"windshield_break", "deformMaterialBase":"pickup_glass_int", "deformMaterialDamaged":"pickup_glass_dmg"},
         ["nix_97dakota_windshield_dmg", ["pickup_windshield"]],
         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         {"nodeWeight":1.88},
         {"group":["pickup_windshield","gps"]},
         ["wi1", 0.00000, -0.78644, 1.49000],
         {"group":""},
         {"nodeMaterial":"|NM_METAL"},

         //add weight

         //roof
         {"group":"pickup_body"},
         {"nodeWeight":3.008},
         ["rf1r", -0.57303, -0.34177, 1.67091, {"group":["pickup_body","pickup_windshield","gps"]}],
         ["rf1", 0.00000, -0.49468, 1.66437, {"group":["pickup_body","pickup_windshield","gps"]}],
         ["rf1l", 0.57303, -0.34616, 1.67091, {"group":["pickup_body","pickup_windshield","gps"]}],

         //a-pillar
         {"nodeWeight":2.256},
         ["p1r", -0.62324, -0.68813, 1.48000, {"group":["pickup_body","pickup_windshield","gps"]}],
         ["p1l", 0.62324, -0.68813, 1.48000, {"group":["pickup_body","pickup_windshield","gps"]}],
         ["p2r", -0.66812, -0.66813, 1.48000, {"group":["pickup_body","pickup_windshield","gps"]}],
         ["p2l", 0.66812, -0.66813, 1.48000, {"group":["pickup_body","pickup_windshield","gps"]}],

         //firewall
         {"nodeWeight":5.828},
         ["b6rr", -0.76362, -0.89449, 1.19961, {"group":["pickup_body","pickup_windshield","gps","pickup_snorkel"]}],
         ["b6r", -0.30372, -1.09542, 1.21961, {"group":["pickup_body","pickup_windshield","gps"]}],
         ["b6l", 0.30372, -1.09542, 1.22961, {"group":["pickup_body","pickup_windshield","gps"]}],
         ["b6ll", 0.76362, -0.89449, 1.19961, {"group":["pickup_body","pickup_windshield","gps"]}],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":1895830,"beamDamp":244.4},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformGroup":"windshield_break", "deformationTriggerRatio":0.03},
          {"beamDeform":7000,"beamStrength":"FLT_MAX"},
          //windshield
          {"deformLimitExpansion":""},
          ["wi1","rf1"],
          ["p1r","wi1"],
          ["p1l","wi1"],
          ["wi1","b6r"],
          ["wi1","b6l"],
          ["wi1","rf2"],
          ["rf1r","wi1"],
          ["rf1l","wi1"],

          ["wi1","b6rr"],
          ["wi1","b6ll"],

          {"beamDeform":7000,"beamStrength":14952},
          ["p1r","p1l"],
          ["rf1r","b6r"],
          ["rf1l","b6l"],

          ["rf1","b6r"],
          ["rf1","b6l"],
          {"breakGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformGroup":""},
          {"deformLimitExpansion":1.2},
    ],
    "mirrors": [
        ["name", "id1:", "id2:", "id3:", "textureTarget"],
        ["mirror_M", "p2ll", "p2rr", "rf1r", "@mirror_M"]
    ],
},
}
