{
"xc90_glass_F": {
    "information":{
        "authors":"BeamNG",
        "name":"Windshield",
        "value":330,
    },
    "slotType" : "xc90_glass_F",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"windshield_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_windshield", ["xc90_windshield"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>impact_glass_windscreen_01", "deformVolume":0.7}],

         {"deformGroup":"windshield_break", "deformMaterialBase":"glass_invisible", "deformMaterialDamaged":"glass_cracks"},
         ["xc90_windshield_dmg", ["xc90_windshield"]],

         {"deformGroup":""},
		 ["xc90_wipers_F", ["xc90_body"]],

    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         {"nodeWeight":2.0},
         {"group":["xc90_windshield","gps"]},
         ["wi1", 0.00000, -0.81088, 1.25928],
         {"group":""},
         {"nodeMaterial":"|NM_METAL"},

         //--NODE WEIGHT ADD--
         //windshield
         {"group":"xc90_body"},

         //a pillars
         {"nodeWeight":2.5},
         ["p2r", -0.7374, -0.60793, 1.2452, {"group":["xc90_body","gps","xc90_windshield"]}], //weight added by glass
         ["p2l", 0.7374, -0.60793, 1.2452, {"group":["xc90_body","gps","xc90_windshield"]}], //weight added by glass

         //roof
         {"nodeWeight":2.9},
         ["rf1r", -0.65135, -0.24968, 1.50353, {"group":["xc90_body","gps","xc90_windshield"]}],
         ["rf1", 0.00000, -0.37995, 1.51439, {"nodeWeight":2.4,"group":["xc90_body","gps","xc90_windshield"]}],
         ["rf1l", 0.65135, -0.24968, 1.50353, {"group":["xc90_body","gps","xc90_windshield"]}],

         //firewall
         {"nodeWeight":6.1},
         {"group":["xc90_engine_bay","xc90_windshield","gps","xc90_body","xc90_dash"]},
         ["f6rr", -0.79791, -0.94310, 1.08141],
         ["f6r", -0.35282, -1.06884, 1.06542, {"group":["xc90_enginebay","xc90_windshield","gps","xc90_body","xc90_strutbar","xc90_dash"]}],
         ["f6l", 0.35282, -1.06884, 1.06542, {"group":["xc90_enginebay","xc90_windshield","gps","xc90_body","xc90_strutbar","xc90_dash"]}],
         ["f6ll", 0.79791, -0.94310, 1.08141],
         {"group":""},
    ],

    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //windshield
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"beamSpring":1001000,"beamDamp":50},
          {"beamDeform":4100,"beamStrength":"FLT_MAX"},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformGroup":"windshield_break","deformationTriggerRatio":0.03},
          ["rf1","wi1"],
          ["rf1r","wi1"],
          ["rf1l","wi1"],
          ["wi1","f6r"],
          ["wi1","f6l"],
          ["wi1","p1r"],
          ["wi1","p1l"],
          ["wi1","f6rr"],
          ["wi1","f6ll"],

          ["wi1","p2rr"],
          ["wi1","p2ll"],
          {"beamDeform":5550,"beamStrength":12750},
          ["rf1","f6r"],
          ["rf1","f6l"],

          ["p1r","p1l"],

          ["rf1r","f6r"],
          ["rf1l","f6l"],

          {"breakGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformGroup":""},
          {"deformLimitExpansion":1.2},
    ],
},
"xc90_quarterglass_RR": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Right Quarter Glass",
        "value":85,
    },
    "slotType" : "xc90_quarterglass_RR",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"quarterglass_RR_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_sideglass_R", ["xc90_body"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}],

         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},

         //--NODE WEIGHT ADD--

         //rear quarter glass
         {"group":"xc90_body"},
         //c/d pillar
         {"nodeWeight":4.0},
         ["p9r", -0.74906, 1.3079, 1.25168],
         ["p10r", -0.67849, 2.17254, 1.25168],
         {"group":""},
    ],
},
"xc90_quarterglass_RL": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Left Quarter Glass",
        "value":85,
    },
    "slotType" : "xc90_quarterglass_RL",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"quarterglass_RL_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_sideglass_L", ["xc90_body"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound6", "deformVolume":0.6}],

         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},

         //--NODE WEIGHT ADD--

         //rear quarter glass
         {"group":"xc90_body"},
         //c/d pillar
         {"nodeWeight":4.0},
         ["p9l", 0.74906, 1.3079, 1.25168],
         ["p10l", 0.67849, 2.17254, 1.25168],
         {"group":""},
    ],
},
"xc90_doorglass_FR": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Right Door Glass",
        "value":50,
    },
    "slotType" : "xc90_doorglass_FR",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_FR_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_doorglass_FR", ["xc90_door_FR"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.7}],

         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //front right door glass
         {"nodeWeight":1.2},
         {"collision":true},
         {"selfCollision":true},
         {"group":"xc90_door_FR"},
         ["d10r", -0.78379, -0.61683, 1.21586],
         ["d11r", -0.68265, -0.21603, 1.49455],
         ["d12r", -0.66507, 0.35962, 1.56740],
         ["d13r", -0.77728, 0.31482, 1.28425],
         {"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.01},
          {"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.2},
    ],
},
"xc90_doorglass_FL": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Left Door Glass",
        "value":50,
    },
    "slotType" : "xc90_doorglass_FL",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_FL_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_doorglass_FL", ["xc90_door_FL"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound6", "deformVolume":0.7}],

         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //front left door glass
         {"nodeWeight":1.2},
         {"collision":true},
         {"selfCollision":true},
         {"group":"xc90_door_FL"},
         ["d10l", 0.78379, -0.61683, 1.21586],
         ["d11l", 0.68265, -0.21603, 1.49455],
         ["d12l", 0.66507, 0.35962, 1.56740],
         ["d13l", 0.77728, 0.31482, 1.28425],
         {"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.01},
          {"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.2},
    ],
},
"xc90_doorglass_RR": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Right Door Glass",
        "value":50,
    },
    "slotType" : "xc90_doorglass_RR",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_RR_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_doorglass_RR", ["xc90_door_RR"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],

         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //rear right door glass
         {"selfCollision":true},
         {"collision":true},
         {"group":"xc90_door_RR"},
         {"nodeWeight":1.2},
         ["d23r", -0.77728, 0.34956, 1.28425],
         ["d24r", -0.65561, 0.38733, 1.57601],
         ["d25r", -0.66196, 0.75430, 1.57699],
         ["d26r", -0.66514, 1.12164, 1.55625],
         ["d27r", -0.76968, 1.26905, 1.27231],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":1101000,"beamDamp":60},
          {"beamDeform":7000,"beamStrength":6000},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformGroup":"doorglass_RR_break", "deformationTriggerRatio":0.01},
          {"breakGroup":"doorglass_RR"},
          {"deformLimitExpansion":""},
          ["d21r", "d25r"],
          ["d23r", "d27r"],
          ["d26r", "d20r"],
          ["d24r", "d22r"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
"xc90_doorglass_RL": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Left Door Glass",
        "value":50,
    },
    "slotType" : "xc90_doorglass_RL",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_RL_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_doorglass_RL", ["xc90_door_RL"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound8", "deformVolume":0.7}],

         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //rear left door glass
         {"selfCollision":true},
         {"collision":true},
         {"group":"xc90_door_RL"},
         {"nodeWeight":1.2},
         ["d23l", 0.77728, 0.34956, 1.28425],
         ["d24l", 0.65561, 0.38733, 1.57601],
         ["d25l", 0.66196, 0.75430, 1.57699],
         ["d26l", 0.66514, 1.12164, 1.55625],
         ["d27l", 0.76968, 1.26905, 1.27231],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":1101000,"beamDamp":60},
          {"beamDeform":7000,"beamStrength":6000},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformGroup":"doorglass_RL_break", "deformationTriggerRatio":0.01},
          {"breakGroup":"doorglass_RL"},
          {"deformLimitExpansion":""},
          ["d21l", "d25l"],
          ["d23l", "d27l"],
          ["d26l", "d20l"],
          ["d24l", "d22l"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
"xc90_tailgateglass": {
    "information":{
        "authors":"BeamNG",
        "name":"Tailgate Glass",
        "value":80,
    },
    "slotType" : "xc90_tailgateglass",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"tailgateglass_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_tailgateglass", ["xc90_tailgate"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound10", "deformVolume":0.8}],

         {"deformGroup":""},
    ],
    "nodes": [
        ["id", "posX", "posY", "posZ"],
         //--TAILGATE--
         {"collision":true},
         {"selfCollision":true},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":"xc90_tailgate"},
         {"nodeWeight":2.0},
         ["t2rr", -0.64071, 2.22473, 1.36652],
         ["t2r", -0.59003, 2.08229, 1.54510],
         ["t2", 0.00000, 2.19844, 1.60984],
         ["t2l", 0.59003, 2.08229, 1.54510],
         ["t2ll", 0.64071, 2.22473, 1.36652],

         {"nodeWeight":1.6},
         ["t3rr", -0.63243, 2.38175, 1.21787],
         ["t3r", -0.26848, 2.47078, 1.20593],
         ["t3l", 0.26848, 2.47078, 1.20593],
         ["t3ll", 0.63243, 2.38175, 1.21787],

         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle rear glass
          {"beamSpring":1201000,"beamDamp":100},
          {"beamDeform":3600,"beamStrength":4000},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"breakGroup":"tailgateglass"},
          {"deformGroup":"tailgateglass_break", "deformationTriggerRatio":0.02},
          {"deformLimitExpansion":""},
          ["t2", "t3l"],
          ["t2", "t3r"],
          ["t2l", "t3rr"],
          ["t2r", "t3ll"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
"xc90_roofglass": {
    "information":{
        "authors":"BeamNG",
        "name":"Panoramic Roof Glass",
        "value":520,
    },
    "slotType" : "xc90_roofglass",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"roofglass_break", "deformMaterialBase":"xc90_glass", "deformMaterialDamaged":"xc90_glass_dmg"},
         ["xc90_sunroof_glass", ["xc90_body"]],
         {"deformGroup":""},
    ],
    "nodes": [
         //redefine roof node heavier to simulate roof weight
         ["id", "posX", "posY", "posZ"],
         {"group":"xc90_body"},
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"nodeWeight":6.85},
         ["rf2r", -0.61073, 0.32572, 1.62138],
         ["rf2", 0.00000, 0.31486, 1.65395, {"nodeWeight":5.85}],
         ["rf2l", 0.61073, 0.32572, 1.62138],

         ["rf3", 0.00000, 1.04325, 1.66673, {"nodeWeight":3.85}],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle rear glass
          {"beamSpring":1201000,"beamDamp":100},
          {"beamDeform":3600,"beamStrength":4000},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"breakGroup":"roofglass_break"},
          {"deformGroup":"roofglass_break_break", "deformationTriggerRatio":0.001},
          {"deformLimitExpansion":""},
          ["rf3r", "rf2l"],
          ["rf2l", "rf1r"],
          ["rf2r", "rf1l"],
          ["rf2r", "rf3l"],
          ["rf3l", "rf1r"],
          ["rf3r", "rf1l"],
          {"beamSpring":801000,"beamDamp":100},
          ["rf2", "p6r"],
          ["rf2", "p5r"],
          ["rf2", "p6l"],
          ["rf2", "p5l"],
          ["rf2", "p2rr"],
          ["rf2", "p2ll"],
          ["rf2", "p9r"],
          ["rf2", "p9l"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
}