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

         {"deformGroup":"windshield_break", "deformMaterialBase":"revuelto_glass", "deformMaterialDamaged":"revuelto_glass_dmg"},
         ["revuelto_windshield", ["revuelto_windshield"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>impact_glass_windscreen_01", "deformVolume":0.7}],
         {"deformGroup":"windshield_break", "deformMaterialBase":"revuelto_glass_int", "deformMaterialDamaged":"revuelto_glass_int"},
         //["revuelto_windshield_int", ["revuelto_windshield"]],
         {"deformGroup":"windshield_break", "deformMaterialBase":"glass_invisible", "deformMaterialDamaged":"glass_mirror"},
         ["revuelto_windshield_dmg", ["revuelto_windshield"]],
         {"deformGroup":""},
         ["revuelto_wiper", ["revuelto_windshield"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         {"nodeWeight":2.0},
         {"group":["gps","revuelto_windshield"]},
         //windshield node
         ["wi1", 0.00000, -1.07204, 0.98000],
         {"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":""},
          ["p1l", "rf1rr"],
          ["p1r", "rf1ll"],
          ["p1l", "f6r"],
          ["p1r", "f6l"],
          ["f6l", "rf1"],
          ["rf1", "f6r"],
          ["wi1", "rf1"],
          ["wi1", "f6r"],
          ["wi1", "f6l"],
          ["wi1", "p1l"],
          ["wi1", "p1r"],
          ["wi1", "p2rr"],
          ["wi1", "p2ll"],
          ["wi1", "f6ll"],
          ["wi1", "f6rr"],
          ["wi1", "p2r"],
          ["wi1", "p2l"],
          ["wi1", "rf1rr"],
          ["wi1", "rf1ll"],
          ["wi1", "fx4l"],
          ["wi1", "fx4r"],
          {"breakGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformGroup":""},
          {"deformLimitExpansion":1.2},
    ],
},
"revuelto_rearglass_hardtop":{
    "information":{
        "authors":"BeamNG",
        "name":"Hardtop Rear Glass",
        "value":300,
    },
    "slotType" : "revuelto_rearglass_hardtop",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        {"deformGroup":"rearglass_break", "deformMaterialBase":"revuelto_glass", "deformMaterialDamaged":"revuelto_glass_dmg"},
        ["revuelto_rear_glass_hardtop", ["revuelto_body","revuelto_chassis"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound10", "deformVolume":0.8}],
        {"deformGroup":"rearglass_break", "deformMaterialBase":"revuelto_glass_int", "deformMaterialDamaged":"revuelto_glass_dmg"},
        //["revuelto_rear_glass_hardtop_int", ["revuelto_body","revuelto_chassis"]],
        {"deformGroup":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //rear window
          {"deformLimitExpansion":""},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"breakGroup":"backlight", "deformGroup":"rearglass_break","deformationTriggerRatio":0.05},
          {"beamSpring":832500,"beamDamp":45},
          {"beamDeform":13000,"beamStrength":15000},
          {"optional":true}
          ["f10", "rf4"],
          ["f10l", "rf4rr"],
          ["f10r", "rf4ll"],
          {"optional":false}
          {"breakGroup":"", "deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
"revuelto_doorglass_R_hardtop": {
    "information":{
        "authors":"BeamNG",
        "name":"Hardtop Right Door Glass",
        "value":70,
    },
    "slotType" : "revuelto_doorglass_R_hardtop",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_R_break", "deformMaterialBase":"revuelto_glass", "deformMaterialDamaged":"revuelto_glass_dmg"},
         ["revuelto_doorglass_R", ["revuelto_windowframe_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"doorglass_R_break", "deformMaterialBase":"revuelto_glass_int", "deformMaterialDamaged":"revuelto_glass_dmg"},
         //["revuelto_door_window_hardtop_R_int", ["revuelto_door_R", "revuelto_windowframe_R"]],
         {"deformGroup":""},
    ],
    "doorRCoupler":{
        "$+openForceMagnitude": 20,
        "$+closeForceMagnitude":-20,
    }
    "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},
    ],
},
"revuelto_doorglass_L_hardtop": {
    "information":{
        "authors":"BeamNG",
        "name":"Hardtop Left Door Glass",
        "value":70,
    },
    "slotType" : "revuelto_doorglass_L_hardtop",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_L_break", "deformMaterialBase":"revuelto_glass", "deformMaterialDamaged":"revuelto_glass_dmg"},
         ["revuelto_doorglass_L", ["revuelto_windowframe_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"doorglass_L_break", "deformMaterialBase":"revuelto_glass_int", "deformMaterialDamaged":"revuelto_glass_dmg"},
         //["revuelto_door_window_hardtop_L_int", ["revuelto_door_L", "revuelto_windowframe_L"]],
         {"deformGroup":""},
    ],
     "doorLCoupler":{
        "$+openForceMagnitude": 20,
        "$+closeForceMagnitude":-20,
    }
    "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},
    ],
},
"revuelto_quarterglass_RR": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Right Quarter Glass",
        "value":30,
    },
    "slotType" : "revuelto_quarterglass_RR",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"quarterglass_R_break", "deformMaterialBase":"revuelto_glass", "deformMaterialDamaged":"revuelto_glass_dmg"},
         ["revuelto_quarterglass_RR", ["revuelto_body", "revuelto_chassis"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"quarterglass_R_break", "deformMaterialBase":"revuelto_glass_int", "deformMaterialDamaged":"revuelto_glass_dmg"},
         //["revuelto_quarterglass_RR_int", ["revuelto_body", "revuelto_chassis"]],
         {"deformGroup":""},
    ],
},
"revuelto_quarterglass_RL": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Left Quarter Glass",
        "value":30,
    },
    "slotType" : "revuelto_quarterglass_RL",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"quarterglass_L_break", "deformMaterialBase":"revuelto_glass", "deformMaterialDamaged":"revuelto_glass_dmg"},
         ["revuelto_quarterglass_RL", ["revuelto_body", "revuelto_chassis"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"quarterglass_L_break", "deformMaterialBase":"revuelto_glass_int", "deformMaterialDamaged":"revuelto_glass_dmg"},
         //["revuelto_quarterglass_RL_int", ["revuelto_body", "revuelto_chassis"]],
         {"deformGroup":""},
    ],
},
}