{
"inf21tahoe_grille": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Grille",
        "value":700,
    },
    "slotType" : "inf21tahoe_grille",
    "slots": [
        ["type", "default", "description"],
        ["inf21tahoe_fascia_accessory","", "Fascia Accessory"],
        ["inf21tahoe_grillebars","inf21tahoe_grillebars_alt","Grille Bars"],
        ["inf21tahoe_grillebadge_F","inf21tahoe_grillebadge_F", "Grille Badge"],
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["inf21tahoe_grille_F", ["inf21tahoe_grille"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"nodeMaterial":"|NM_PLASTIC"},
         {"frictionCoef":0.5},
         //--FRONT grille--
         {"collision":true},
         {"selfCollision":true},
         {"group":"inf21tahoe_grille"},
         {"nodeWeight":1.504},
         
         ["fa1r", -0.63851, -2.23465, 1.06022],
         ["fa1", 0.00000, -2.33195, 1.06022],
         ["fa1l", 0.63851, -2.23465, 1.06022],
         

         ["fa2r", -0.54274, -2.28446, 0.70440],
         ["fa2", 0.00000, -2.30089, 0.66796],
         ["fa2l", 0.54274, -2.28446, 0.70440],

         {"collision":false},
         {"selfCollision":false},
         {"group":""},
         ["fa3r", -0.45000, -2.15761, 0.92022],
         ["fa3l", 0.45000, -2.15761, 0.92022],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--FRONT grille--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":829869.6,"beamDamp":73.32},
          {"beamDeform":14175,"beamStrength":"FLT_MAX"},
          //grille main shape
          {"deformLimitExpansion":1.2},
          
          ["fa1r", "fa1"],
          ["fa1", "fa1l"],
          
          ["fa1r", "fa2r"],
          ["fa1", "fa2"],
          ["fa1l", "fa2l"],
          ["fa2l", "fa2"],
          ["fa2", "fa2r"],

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":3675,"beamStrength":"FLT_MAX"},
          ["fa2r", "fa1"],
          ["fa1r", "fa2"],
          ["fa2", "fa1l"],
          ["fa2l", "fa1"],
          
          

          //rigids
          {"beamDeform":3150,"beamStrength":"FLT_MAX"},
          
          ["fa1r", "fa1l"],
          
          ["fa2r", "fa2l"],

          //rigidifier
          {"beamDeform":1750,"beamStrength":"FLT_MAX"},
          
          ["fa3r", "fa2r"],
          ["fa3r", "fa1r"],
          ["fa3r", "fa2"],
          ["fa3r", "fa1"],
          ["fa3r", "fa2l"],
          ["fa3r", "fa1l"],
          
          ["fa3l", "fa1l"],
          ["fa3l", "fa2l"],
          ["fa3l", "fa2"],
          ["fa3l", "fa1"],
          ["fa3l", "fa2r"],
          ["fa3l", "fa1r"],

          //attach
          {"disableTriangleBreaking":false},
          {"beamDeform":6825,"beamStrength":19313},
          //r
          {"breakGroup":"grille_R"},
          
          
          
          ["fa1r", "s1r"],
          ["fa1r", "s1rr"],
          ["fa1r", "s2r"],
          ["fa1r", "s1"],
          ["fa2r", "s2r"],
          ["fa2r", "s2rr"],
          ["fa2r", "s1r"],

          //l
          {"breakGroup":"grille_L"},
          
          
          
          ["fa1l", "s1l"],
          ["fa1l", "s1ll"],
          ["fa1l", "s2l"],
          ["fa1l", "s1"],
          ["fa2l", "s2l"],
          ["fa2l", "s2ll"],
          ["fa2l", "s1l"],
          {"breakGroup":""},

          //--grille SUPPORT BEAMS--
          {"beamType":"|SUPPORT","beamLongBound":4},
          {"beamSpring":829869.6,"beamDamp":0},
          {"beamDeform":15540,"beamStrength":149520},
          {"optional":true},
          
          
          {"optional":false},
          
          ["fa1r", "s1r"],
          ["fa1", "s1"],
          ["fa1l", "s1l"],
          
          ["fa2l", "s2l"],
          ["fa2l", "s1l"],
          ["fa2", "s2"],
          ["fa2", "s1"],
          ["fa2r", "s2r"],
          ["fa2r", "s1r"],
          {"disableTriangleBreaking":false},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //grille
            {"groundModel":"plastic"},
            {"group":"roamer_grille"},
            {"dragCoef":4},
            ["fa1r", "fa2r", "fa2"],
            ["fa2", "fa1", "fa1r"],
            ["fa1", "fa2", "fa1l"],
            ["fa1l", "fa2", "fa2l"],
            ["fa1rr", "fa1r", "fa1"],
            ["fa1", "fa1l", "fa1ll"],
    ],
},
"inf21tahoe_grillebars": {
    "information":{
        "authors":"BeamNG",
        "name":"Black Grille Bars",
        "value":180,
    },
    "slotType" : "inf21tahoe_grillebars",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["inf21tahoe_grille", ["inf21tahoe_grille"]],
    ],
},
}
