{
"kzn_ws6_windshield": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Windshield",
        "value":300,
    },
    "slotType" : "kzn_ws6_windshield",
    "slots":[
        ["type", "default", "description"],
        ["kzn_ws6_windshield_stickers", "", "Windshield Stickers"],
    ]
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["kzn_ws6_windshield", ["kzn_ws6_windshield"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>impact_glass_windscreen_01", "deformVolume":0.7}],
         ["kzn_ws6_wipers", ["kzn_ws6_body","kzn_ws6_uppermounts_R","kzn_ws6_shocktop_R","kzn_ws6_shocktop_F", "kzn_ws6_rad", "kzn_ws6_engine_bay"]],
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.12
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         {"nodeWeight":2.5},
         {"group":""},
         //windshield node
         ["wi1", 0, -0.50, 1.11, {"group":["kzn_ws6_windshield","gps"]}],
         {"group":""},
         {"nodeMaterial":"|NM_METAL"},

         //--ADD WEIGHT--

         //windshield
         //a pillar
         {"nodeWeight":2.0},
         ["p1r", -0.69, -0.30, 1.09, {"group":["kzn_ws6_body","kzn_ws6_windshield"]}],
         ["p1l", 0.69, -0.30, 1.09, {"group":["kzn_ws6_body","kzn_ws6_windshield"]}],
         //roof
         {"nodeWeight":3.0},
         ["rf1r", -0.63, 0.03, 1.22, {"group":["kzn_ws6_windshield", "kzn_ws6_body"]}],
         ["rf1", 0, -0.05, 1.28, {"nodeWeight":2.5,"group":["kzn_ws6_windshield", "kzn_ws6_body"]}],
         ["rf1l", 0.63, 0.03, 1.22, {"group":["kzn_ws6_windshield", "kzn_ws6_body"]}],
         //weight added by glass
         {"nodeWeight":6.0},
         ["f6rr", -0.80, -0.50, 0.92, {"group":["kzn_ws6_engine_bay","gps","kzn_ws6_windshield","kzn_ws6_body","kzn_ws6_dash"]}],
         ["f6r", -0.40, -0.90, 0.90, {"group":["kzn_ws6_engine_bay","gps","kzn_ws6_windshield","kzn_ws6_body","kzn_ws6_strutbar","kzn_ws6_dash"]}],
         ["f6l", 0.40, -0.90, 0.90, {"group":["kzn_ws6_engine_bay","gps","kzn_ws6_windshield","kzn_ws6_body","kzn_ws6_strutbar","kzn_ws6_dash"]}],
         ["f6ll", 0.80, -0.50, 0.92, {"group":["kzn_ws6_engine_bay","gps","kzn_ws6_windshield","kzn_ws6_body","kzn_ws6_dash"]}],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          //windshield node
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"beamSpring":1348050,"beamDamp":50},
          {"beamDeform":3750,"beamStrength":"FLT_MAX"},
          {"deformGroup":"windshield_break", "deformationTriggerRatio":0.03},
          {"deformLimitExpansion":""},
          ["wi1","rf1r"],
          ["wi1","rf1"],
          ["wi1","rf1l"],
          ["wi1","p1r"],
          ["wi1","p1l"],
          ["wi1","p2r"],
          ["wi1","p2l"],
          ["wi1","f6r"],
          ["wi1","f6l"],
          ["wi1","f6rr"],
          ["wi1","f6ll"],
          ["wi1","p2rr"],
          ["wi1","p2ll"],

          {"beamDeform":4050,"beamStrength":10250},
          ["f6rr","rf1"],
          ["f6ll","rf1"],
          ["f6r","rf1"],
          ["f6l","rf1"],
          ["p1r","p1l"],

          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"kzn_ws6_roof"},
            {"dragCoef":2},
            ["wi1","rf1l","rf1"],
            ["wi1","rf1","rf1r"],
            ["wi1","rf1r","p1r"],
            ["wi1","p1r","f6rr"],
            ["wi1","f6rr","f6r"],
            ["wi1","f6r","f6l"],
            ["wi1","f6l","f6ll"],
            ["wi1","f6ll","p1l"],
            ["wi1","p1l","rf1l"],
            {"dragCoef":0},
            {"group":""},
    ],
},
"kzn_ws6_backlight": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Backlight",
        "value":200,
    },
    "slotType" : "kzn_ws6_backlight",
    "slots":[
        ["type", "default", "description"],
        ["kzn_ws6_backlight_stickers", "", "Rear Window Stickers"],
    ]
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["kzn_ws6_backlight", ["kzn_ws6_tailgate"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound9", "deformVolume":0.8}],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},

         //--ADD WEIGHT--

         //rear window
         {"group":"kzn_ws6_body"},
         //c pillar
         {"nodeWeight":3.2},
         ["p6r", -0.61, 1.10, 1.13],
         ["p6l", 0.61, 1.10, 1.13],
         //roof
         {"nodeWeight":3.0},
         ["rf4r", -0.56, 0.92, 1.22],
         ["rf4", 0, 0.94, 1.27, {"nodeWeight":2.6}],
         ["rf4l", 0.56, 0.92, 1.22],
         //base of rear window/trunk
         {"nodeWeight":3.3},
         ["tb1", 0.0, 1.74, 0.97],
         ["tb1r", -0.66, 1.66, 0.94, {"group":""}],
         ["tb1l", 0.66, 1.66, 0.94, {"group":""}],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          //rear window
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"beamSpring":1238050,"beamDamp":50},
          {"beamDeform":5000,"beamStrength":10000},
          {"deformGroup":"backlight_break", "deformationTriggerRatio":0.001},
          {"breakGroup":"backlight"},
          ["rf4","tb1"],
          ["rf4","tb1l"],
          ["rf4","tb1r"],
          ["rf4r","tb1"],
          ["rf4l","tb1"],

          ["tb1r","rf4l"],
          ["tb1l","rf4r"],
          ["p6r","p6l"],

          ["p6r","rf4l"],
          ["p6r","tb1"],
          ["p6l","rf4r"],
          ["p6l","tb1"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"kzn_ws6_roof"},
            {"breakGroup":"backlight"},
            {"dragCoef":7},
            ["t1","t3l","t3"],
            ["t1","t3","t3r"],
            ["t1","t1l","t3l"],
            ["t1","t3r","t1r"],
            ["t1l","t2ll","t3l"],
            ["t1r","t3r","t2rr"],
            {"breakGroup":""},
            {"dragCoef":0},
            {"group":""},
    ],
},
"kzn_ws6_doorglass_R": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Right Door Glass",
        "value":80,
    },
    "slotType" : "kzn_ws6_doorglass_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["kzn_ws6_doorglass_R", ["kzn_ws6_door_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.06
    }
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         //right door glass
         {"selfCollision":true},
         {"collision":true},
         {"group":"kzn_ws6_door_R"},
         {"nodeWeight":2.1},
         ["d10r",-0.665, 0.05, 1.22],
         ["d11r",-0.665, 0.62, 1.25],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          //right door glass
          {"beamSpring":2001000,"beamDamp":125},
          {"beamDeform":7800,"beamStrength":"FLT_MAX"},
          {"deformGroup":"doorglass_R_break","deformationTriggerRatio":0.02},
          {"deformLimitExpansion":""},
          ["d10r","d11r"],

          ["d10r","d9r", {"beamStrength":5000,"breakGroup":"doorglass_R_break"}],
          ["d10r","d8r"],
          ["d10r","d7r"],
          ["d11r","d9r"],
          ["d11r","d8r"],
          ["d11r","d7r", {"beamStrength":5000,"breakGroup":"doorglass_R_break"}],

          ["d10r","d14r"],
          ["d11r","d14r"],

          //window frame
          ["d11r", "d6r"],
          ["d10r", "d4r"],
          ["d10r", "d5r"],
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"kzn_ws6_door_R"},
            {"dragCoef":20},
            {"breakGroup":"doorglass_R_break"},
            ["d7r", "d10r", "d8r"],
            ["d9r", "d8r", "d10r"],
            ["d11r", "d9r", "d10r"],
            {"breakGroup":""},
            {"group":""},
    ],
},
"kzn_ws6_doorglass_L": {
    "information":{
        "authors":"ItzKaizen",
        "name":"Left Door Glass",
        "value":80,
    },
    "slotType" : "kzn_ws6_doorglass_L",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["kzn_ws6_doorglass_L", ["kzn_ws6_door_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound8", "deformVolume":0.7}],
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.06
    }
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         //left door glass
         {"selfCollision":true},
         {"collision":true},
         {"group":"kzn_ws6_door_L"},
         {"nodeWeight":2.1},
         ["d10l",0.665, 0.05, 1.22],
         ["d11l",0.665, 0.62, 1.25],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          //glass
          {"beamSpring":2001000,"beamDamp":125},
          {"beamDeform":7800,"beamStrength":"FLT_MAX"},
          {"deformGroup":"doorglass_L_break","deformationTriggerRatio":0.02},
          {"deformLimitExpansion":""},
          ["d10l","d11l"],

          ["d10l","d9l", {"beamStrength":5000,"breakGroup":"doorglass_L_break"}],
          ["d10l","d8l"],
          ["d10l","d7l"],
          ["d11l","d9l"],
          ["d11l","d8l"],
          ["d11l","d7l", {"beamStrength":5000,"breakGroup":"doorglass_L_break"}],

          ["d10l","d14l"],
          ["d11l","d14l"],

          //window frame
          ["d11l", "d6l"],
          ["d10l", "d4l"],
          ["d10l", "d5l"],
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"kzn_ws6_door_L"},
            {"dragCoef":20},
            {"breakGroup":"doorglass_L_break"},
            ["d10l", "d7l", "d8l"],
            ["d8l", "d9l", "d10l"],
            ["d9l", "d11l", "d10l"],
            {"breakGroup":""},
            {"group":""},
    ],
},
"kzn_ws6_ttop": {
    "information":{
        "authors":"ItzKaizen",
        "name":"T-Top Roof",
        "value":450,
    },
    "slotType" : "kzn_ws6_ttop",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["kzn_ws6_ttop_roof", ["kzn_ws6_body"]],
    ],
	"triangles": [
            ["id1:","id2:","id3:"],
            {"group":"kzn_ws6_roof"},
            ["rf1r","rf1","rf2r"],
            ["rf1","rf2","rf2r"],
            ["rf1","rf1l","rf2l"],
            ["rf2","rf1","rf2l"],
            ["rf2r","rf2","rf3r"],
            ["rf2","rf3","rf3r"],
            ["rf2","rf2l","rf3l"],
            ["rf3","rf2","rf3l"],
    ],
},
}