{
"sdd_tacoma_windshield": {
    "information":{
        "authors":"BeamNG",
        "name":"Windshield",
        "value":350,
    },
    "slotType" : "sdd_tacoma_windshield",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         //glass
         {"deformGroup":"windshield_break", "deformMaterialBase":"bastion_glass", "deformMaterialDamaged":"bastion_windshield_dmg"},
         ["sdd_tacoma_windshield", ["sdd_tacoma_windshield"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>impact_glass_windscreen_01", "deformVolume":0.7}],
         {"deformGroup":"windshield_break", "deformMaterialBase":"bastion_glass_int", "deformMaterialDamaged":"bastion_glass_int"},
         ["sdd_tacoma_windshield_int", ["sdd_tacoma_windshield"]],

         {"deformGroup":"windshield_break", "deformMaterialBase":"glass_invisible", "deformMaterialDamaged":"glass_mirror"},
         ["sdd_tacoma_windshield_dmg", ["sdd_tacoma_windshield"]],

         {"deformGroup":""},
         ["sdd_tacoma_wipers", ["sdd_tacoma_body"]],
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.12
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_GLASS"},
         {"nodeWeight":1.88},
         {"group":["sdd_tacoma_windshield","gps"]},
         ["wi1", 0.00000, -0.61896, 1.49000],
         {"group":""},
         {"nodeMaterial":"|NM_METAL"},

         //add weight

         //roof
         {"group":"sdd_tacoma_body"},
         {"nodeWeight":2.8},
         ["rf1r", -0.67500, -0.25934, 1.73000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         ["rf1", 0.00000, -0.28934, 1.76000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         ["rf1l", 0.67500, -0.25934, 1.73000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         {"nodeWeight":1.5},
         ["rfc1r", -0.35000, -0.27434, 1.74500, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         ["rfc1l", 0.35000, -0.27434, 1.74500, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],

         //a-pillar
         {"nodeWeight":2.256},
         ["p1r", -0.63000, -0.62000, 1.48000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         ["p1l", 0.63000, -0.62000, 1.48000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         ["p2r", -0.78000, -0.60000, 1.48000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         ["p2l", 0.78000, -0.60000, 1.48000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],

         //firewall
         {"nodeWeight":5.828},
         ["b6rr", -0.88000, -0.87000, 1.20000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps","sdd_tacoma_snorkel"]}],
         ["b6r", -0.35000, -0.99000, 1.22000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         ["b6l", 0.35000, -0.99000, 1.22000, {"group":["sdd_tacoma_body","sdd_tacoma_windshield","gps"]}],
         ["b6ll", 0.88000, -0.87000, 1.20000, {"group":["sdd_tacoma_body","sdd_tacoma_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},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //windshield
            {"dragCoef":3},
            {"group":"sdd_tacoma_fronttop"},
            ["rfc1r", "p1r", "b6r"],
            ["b6r", "wi1", "rfc1r"],
            ["wi1", "b6r", "b6l"],
            ["b6l", "p1l", "rfc1l"],
            ["rfc1l", "wi1", "b6l"],
            ["wi1", "rfc1l", "rf1"],
            ["rf1", "rfc1r", "wi1"],
            {"optional":false},
            {"breakGroup":""},
    ],

},
"sdd_tacoma_backlight_crew": {
    "information":{
        "authors":"BeamNG",
        "name":"Backlight",
        "value":150,
    },
    "slotType" : "sdd_tacoma_backlight_crew",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         //glass

         {"deformGroup":"backlight_break", "deformMaterialBase":"bastion_glass", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_backlight", ["sdd_tacoma_body"], [], {"pos":{"x":0,"y":0.0,"z":0,"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound9", "deformVolume":0.8}}],
         {"deformGroup":"backlight_break", "deformMaterialBase":"bastion_glass_int", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_backlight_int", ["sdd_tacoma_body"], [], {"pos":{"x":0,"y":0.0,"z":0}}],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.12
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //backlight

         {"group":"sdd_tacoma_body"},

         //-ROOF--
         {"nodeWeight":3.478},
         ["rf4r", -0.65447, 1.33460, 1.73000],
         ["rf4", 0.00000, 1.33460, 1.76000],
         ["rf4l", 0.65447, 1.33460, 1.73000],

         //--PILLARS--
         {"nodeWeight":2.82},
         ["cp3r", -0.80100, 1.38460, 1.48000],
         ["cp3l", 0.80100, 1.38460, 1.48000],

         //--CAB--
         {"nodeWeight":3.008},
         ["cb8rr", -0.88891, 1.37460, 1.20000],
         ["cb8r", -0.34189, 1.37460, 1.20000],
         ["cb8l", 0.34189, 1.37460, 1.20000],
         ["cb8ll", 0.88891, 1.37460, 1.20000],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          //backlight
          {"beamSpring":1895830,"beamDamp":122.2},
          {"deformGroup":"backlight_break", "deformationTriggerRatio":0.03},
          {"beamDeform":14700,"beamStrength":12460},
          {"breakGroup":"backlight"},
          {"deformLimitExpansion":""},
          ["rf4", "cb8l"],
          ["rf4", "cb8r"],
          ["cp3r", "cp3l"],
          ["cb8l", "rf4r"],
          ["cb8r", "rf4l"],
          ["cb8ll", "rf4"],
          ["cb8rr", "rf4"],
          ["cp3l", "rf4r"],
          ["cp3r", "rf4l"],
          ["cp3l", "cb8rr"],
          ["cp3r", "cb8ll"],
          ["rf4l", "cb8rr"],
          ["cb8ll", "rf4r"],
          {"breakGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformGroup":""},
          {"deformLimitExpansion":1.2},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //rear end
            {"dragCoef":15},
            {"group":"sdd_tacoma_rear"},
            {"breakGroup":"backlight"},
            ["rfc4l", "rf4l", "cp3l"],
            ["cp3l", "cb8ll", "cb8l"],
            ["cb8l", "rfc4l", "cp3l"],
            ["rfc4l", "cb8l", "rf4"],
            ["rf4", "cb8r", "rfc4r"],
            ["rf4", "cb8l", "cb8r"],
            ["cb8r", "rf4r", "rfc4r"],
            ["cb8r", "cb8rr", "cp3r"],
            ["cp3r", "rf4r", "cb8r"],
            {"breakGroup":""},
    ],
},
"sdd_tacoma_doorglass_FR": {
    "information":{
        "authors":"BeamNG",
        "name":"Right Door Glass",
        "value":50,
    },
    "slotType" : "sdd_tacoma_doorglass_FR",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_FR_break", "deformMaterialBase":"bastion_glass", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_doorglass_FR", ["sdd_tacoma_door_FR"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound7", "deformVolume":0.7}],
         {"deformGroup":"doorglass_FR_break", "deformMaterialBase":"bastion_glass_int", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_doorglass_R_int", ["sdd_tacoma_door_FR"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.04
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //--DOOR--
         {"collision":true},
         {"selfCollision":true},
         {"nodeWeight":3.384},
         {"group":"sdd_tacoma_door_FR"},
         ["d10r", -0.85000, -0.57000, 1.47000],
         ["d11r", -0.74000, -0.23934, 1.71000],
         ["d12r", -0.72285, 0.37890, 1.71000],
         ["d13r", -0.83030, 0.38890, 1.47000],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":2093230,"beamDamp":244.4},
          {"beamDeform":9800,"beamStrength":9100},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"breakGroup":"doorglass_FR"},
          {"deformGroup":"doorglass_FR_break", "deformationTriggerRatio":0.02},
          {"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},
    ],
},
"sdd_tacoma_doorglass_FL": {
    "information":{
        "authors":"BeamNG",
        "name":"Left Door Glass",
        "value":50,
    },
    "slotType" : "sdd_tacoma_doorglass_FL",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_FL_break", "deformMaterialBase":"bastion_glass", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_doorglass_FL", ["sdd_tacoma_door_FL"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound8", "deformVolume":0.7}],
         {"deformGroup":"doorglass_FL_break", "deformMaterialBase":"bastion_glass_int", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_doorglass_L_int", ["sdd_tacoma_door_FL"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.04
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //--DOOR--
         {"collision":true},
         {"selfCollision":true},
         {"nodeWeight":3.384},
         {"group":"sdd_tacoma_door_FL"},
         ["d10l", 0.85000, -0.57000, 1.47000],
         ["d11l", 0.74000, -0.23934, 1.71000],
         ["d12l", 0.72285, 0.37890, 1.71000],
         ["d13l", 0.83030, 0.38890, 1.47000],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":2093230,"beamDamp":244.4},
          {"beamDeform":9800,"beamStrength":9100},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"breakGroup":"doorglass_FL"},
          {"deformGroup":"doorglass_FL_break", "deformationTriggerRatio":0.02},
          {"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},
    ],
},
"sdd_tacoma_doorglass_RR_crew": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Right Door Glass",
        "value":50,
    },
    "slotType" : "sdd_tacoma_doorglass_RR_crew",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_RR_break", "deformMaterialBase":"bastion_glass", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_doorglass_RR", ["sdd_tacoma_door_RR"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.7}],
         {"deformGroup":"doorglass_RR_break", "deformMaterialBase":"bastion_glass_int", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_doorglass_RR_crew_int", ["sdd_tacoma_door_RR"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.04
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //--DOOR--
         {"collision":true},
         {"selfCollision":true},
         {"group":"sdd_tacoma_door_RR"},
         {"nodeWeight":1.88},
         ["d24r", -0.83030, 1.28890, 1.47000],
         ["d25r", -0.72285, 1.27890, 1.71000],
         ["d26r", -0.72285, 0.85890, 1.71000],
         ["d27r", -0.72285, 0.40890, 1.71000],
         ["d28r", -0.83030, 0.41890, 1.47000],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},

          //brittle glass beams
          {"beamSpring":2093230,"beamDamp":244.4},
          {"beamDeform":9800,"beamStrength":9100},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformGroup":"doorglass_RR_break", "deformationTriggerRatio":0.02},
          {"breakGroup":"doorglass_RR"},
          {"deformLimitExpansion":""},
          ["d16r", "d26r"],
          ["d24r", "d28r"],
          ["d27r", "d17r"],
          ["d25r", "d15r"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
"sdd_tacoma_doorglass_RL_crew": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Left Door Glass",
        "value":50,
    },
    "slotType" : "sdd_tacoma_doorglass_RL_crew",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"doorglass_RL_break", "deformMaterialBase":"bastion_glass", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_doorglass_RL", ["sdd_tacoma_door_RL"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound6", "deformVolume":0.7}],
         {"deformGroup":"doorglass_RL_break", "deformMaterialBase":"bastion_glass_int", "deformMaterialDamaged":"bastion_glass_dmg"},
         ["sdd_tacoma_doorglass_RL_crew_int", ["sdd_tacoma_door_RL"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.04
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         //--DOOR--
         {"collision":true},
         {"selfCollision":true},
         {"group":"sdd_tacoma_door_RL"},
         {"nodeWeight":1.88},
         ["d24l", 0.83030, 1.28890, 1.47000],
         ["d25l", 0.72285, 1.27890, 1.71000],
         ["d26l", 0.72285, 0.85890, 1.71000],
         ["d27l", 0.72285, 0.40890, 1.71000],
         ["d28l", 0.83030, 0.41890, 1.47000],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          //brittle glass beams
          {"beamSpring":2093230,"beamDamp":244.4},
          {"beamDeform":9800,"beamStrength":9100},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformGroup":"doorglass_RL_break", "deformationTriggerRatio":0.02},
          {"breakGroup":"doorglass_RL"},
          {"deformLimitExpansion":""},
          ["d16l", "d26l"],
          ["d24l", "d28l"],
          ["d27l", "d17l"],
          ["d25l", "d15l"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},
          {"deformLimitExpansion":1.2},
    ],
},
}
