{
"revuelto_body":
{
    "information":{
        "authors":"BeamNG",
        "name":"Body",
        "value":76500,
    },

    "slotType" :"revuelto_body",

    "slots":[
        ["type", "default", "description"],
        //glass
        ["revuelto_windshield","revuelto_windshield", "Windshield"],
        ["revuelto_rearglass_hardtop","revuelto_rearglass_hardtop", "Rear Glass"],
        ["revuelto_quarterglass_RR","revuelto_quarterglass_RR", "Rear Right Quarter Glass"],
        ["revuelto_quarterglass_RL","revuelto_quarterglass_RL", "Rear Left Quarter Glass"],
        //bodywork
        ["revuelto_door_R_hardtop","revuelto_door_R_hardtop", "Right Door"],
        ["revuelto_door_L_hardtop","revuelto_door_L_hardtop", "Left Door"],
        //misc
        ["revuelto_weightreduction_hardtop","revuelto_weightreduction_hardtop", "Insulation and Accessories"],
        ["revuelto_rollcage_hardtop","", "Roll Cage"],
        ["revuelto_roof_accessory_hardtop","","Roof Accessory"],
        ["revuelto_flashers","","Flashers"],
        ["revuelto_us_lightbar","","US Light Bar", {"nodeOffset":{"x":0,"y":-0.4,"z":-0.17}}],,
    ],
    "flexbodies":[
        ["mesh", "[group]:", "nonFlexMaterials"],
         //body
         //["revuelto_roof_hardtop", ["revuelto_body", "revuelto_chassis"]],
         //["revuelto_interior_roof_hardtop", ["revuelto_body", "revuelto_chassis"]],
    ],

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

         //--BODY--
         {"selfCollision":true},
         {"collision":true},

         //roof
         {"nodeWeight":1.7},
         //weight added in glass
         {"group":["revuelto_body","revuelto_roof","gps","revuelto_windshield"]}
         ["rf1rr", -0.63349, -0.52138, 1.09600],
         ["rf1", 0.00000, -0.58538, 1.14300],
         ["rf1ll", 0.63349, -0.52138, 1.09600],

         {"group":["revuelto_body","revuelto_roof"]}
         ["rf2r", -0.63214, -0.15200, 1.13970],
         ["rf2", 0.00000, -0.15200, 1.18800],
         ["rf2l", 0.63214, -0.15200, 1.13970],

         ["rf3rr", -0.45400, 0.34000, 1.07000],
         ["rf3r", -0.60015, 0.31900, 1.15500],//coupler
         ["rf3", 0.00000, 0.31900, 1.15500],
         ["rf3l", 0.60015, 0.31900, 1.15500],//coupler
         ["rf3ll", 0.45400, 0.34000, 1.07000],

         ["rf4rr", -0.42000, 0.62126, 1.13168],
         ["rf4", 0.00000, 0.64626, 1.16668],
         ["rf4ll", 0.42000, 0.62126, 1.13168],

         //roof rigidifier
         {"nodeWeight":2.0},
         ["rf5", 0.00000, -0.02200, 0.96000, {"group":"", "selfCollision":false, "collision":false}],

         //pillars
         {"nodeWeight":1.3},
         //a pillar
         ["p1r", -0.74524, -0.90279, 0.98054, {"group":["revuelto_body","gps","revuelto_windshield"]}], //weight added by glass
         ["p1l", 0.74524, -0.90279, 0.98054, {"group":["revuelto_body","gps","revuelto_windshield"]}], //weight added by glass
         ["p2r", -0.67916, -0.95451, 0.98054],
         ["p2l", 0.67916, -0.95451, 0.98054],
         ["p2rr", -0.68985, -0.77712, 0.92338, {"group":"", "selfCollision":false, "collision":false}],
         ["p2ll", 0.68985, -0.77712, 0.92338, {"group":"", "selfCollision":false, "collision":false}],
         {"group":""},
        ],

    "beams":[
          ["id1:", "id2:"],

          //--MISC--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //breakable beams
          {"beamSpring":1001000,"beamDamp":132},
          {"beamDeform":6500,"beamStrength":19500},
          {"disableMeshBreaking":true,"disableTriangleBreaking":true},
          {"deformLimitExpansion":""},
          ["f6ll", "rf4ll"],
          ["f6rr", "rf4rr"],
          {"disableMeshBreaking":false,"disableTriangleBreaking":false},

          //enticer
          {"beamSpring":5001000,"beamDamp":200},
          {"beamDeform":18500,"beamStrength":"FLT_MAX"},
          ["rf4rr", "f1rr"],
          ["rf4ll", "f1ll"],
          ["f9ll", "f1ll"],
          ["f9rr", "f1rr"],
          ["f5ll", "f3ll"],
          ["f5rr", "f3rr"],

          ["fx2l", "bbf2l"],
          ["fx2r", "bbf2r"],
          {"beamSpring":3001000,"beamDamp":50},
          ["f6ll", "f3ll"],
          ["f6lll", "f3ll"],
          ["f6rr", "f3rr"],
          ["f6rrr", "f3rr"],
          ["f6r", "f3rr"],
          ["f6l", "f3ll"],

          //--BODY--

          //roof main shape
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":1001000,"beamDamp":125},
          {"beamDeform":30000,"beamStrength":"FLT_MAX"},
          {"deformLimitExpansion":1.2},
          //widthwise
          {"deformGroup":"windshield_break", "deformationTriggerRatio":0.01},
          ["rf1ll", "rf1"],
          ["rf1", "rf1rr"],
          {"deformGroup":""},
          ["rf2l", "rf2r"],
          ["rf3ll", "rf3l"],
          ["rf3l", "rf3r"],
          ["rf3r", "rf3rr"],
          ["rf4ll", "rf4"],
          ["rf4", "rf4rr"],

            ["rf2r", "rf2"],
            ["rf2", "rf2l"],
            ["rf3r", "rf3"],
            ["rf3", "rf3l"],

          //lengthwise
          ["rf1rr", "rf2r"],
          ["rf1ll", "rf2l"],
          ["rf1", "rf2r"],
          ["rf1", "rf2l"],
          ["rf2l", "rf3l"],
          ["rf2r", "rf3r"],
          ["rf3r", "rf4"],
          ["rf3l", "rf4"],

            ["rf3", "rf2"],
            ["rf2", "rf1"],
            ["rf3", "rf4"],

          ["rf4ll", "rf3ll", {"deformGroup":"quarterglass_L_break","deformationTriggerRatio":0.01}],
          ["rf3rr", "rf4rr", {"deformGroup":"quarterglass_R_break","deformationTriggerRatio":0.01}],
//attach to rear body
            ["rqs8l", "rf4ll"],
            ["rf4rr", "rqs8r"],

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":19500,"beamStrength":"FLT_MAX"},
          ["rf2r", "rf3l"],
          ["rf2l", "rf3r"],
          ["rf3r", "rf4rr"],
          ["rf3rr", "rf4"],
          ["rf3l", "rf4ll"],
          ["rf3ll", "rf4"],
          ["rf3l", "rf4rr"],
          ["rf3r", "rf4ll"],
          ["rf2r", "rf1ll"],
          ["rf2l", "rf1rr"],

            ["rf4rr", "rf3"],
            ["rf4ll", "rf3"],
            ["rf3", "rf2l"],
            ["rf2", "rf3l"],
            ["rf3", "rf2r"],
            ["rf2", "rf3r"],
            ["rf2", "rf1rr"],
            ["rf2", "rf1ll"],
            ["rf1", "rf2l"],
            ["rf2", "rf1rr"],


//attach to rear body
            ["rqs8r", "rf4"],
            ["rbs1r", "rf4"],
            ["rf4", "rbs1l"],
            ["rbs1l", "rf4ll"],
            ["rf4", "rqs8l"],
            ["rqs8r", "rf4ll"],
            ["rqs8l", "rf4rr"],
            ["rqs8r", "f10r"],
            ["rqs8l", "f10l"],
            ["rqs3r", "f10r"],
            ["rqs3l", "f10l"],
            ["rqs3r", "rf3rr"],
            ["rqs3l", "rf3ll"],


          //rigids
          {"beamDeform":12500,"beamStrength":"FLT_MAX"},
          //widthwise
          ["rf1ll", "rf1rr", {"deformGroup":"windshield_break", "deformationTriggerRatio":0.01},],
          ["rf4ll", "rf4rr"],
          ["rf3ll", "rf3r"],
          ["rf3l", "rf3rr"],
          //extra
          ["rf1ll", "rf3l"],
          ["rf1rr", "rf3r"],
          ["rf3rr", "rf2r"],
          ["rf3ll", "rf2l"],

          //rigidifier
          {"beamDeform":11500,"beamStrength":"FLT_MAX"},
          ["rf1", "rf3r"],
          ["rf5", "rf1"],
          ["rf5", "rf1ll"],
          ["rf5", "rf1rr"],
          ["rf5", "rf2l"],
          ["rf5", "rf2r"],
          ["rf5", "rf3l"],
          ["rf5", "rf3r"],
          ["rf5", "rf3ll"],
          ["rf5", "rf3rr"],
          ["rf5", "rf4rr"],
          ["rf5", "rf4ll"],
          ["rf5", "rf4"],
            ["rf3", "rf5"],
            ["rf2", "rf5"],


          //a pillar main shape
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":2301000,"beamDamp":100},
          {"beamDeform":35000,"beamStrength":"FLT_MAX"},
          {"deformGroup":"windshield_break", "deformationTriggerRatio":0.01},
          {"deformLimitExpansion":1.2},
          ["rf1rr", "p2r"],
          ["p2r", "f6rr"],
          ["rf1rr", "p1r"],
          ["p1r", "f6rr"],
          ["p1r", "p2r"],
          ["rf1ll", "p2l"],
          ["p2l", "f6ll"],
          ["rf1ll", "p1l"],
          ["p1l", "f6ll"],
          ["p1l", "p2l"],

          //new triangle node
          {"deformLimitExpansion":""},
          {"beamDeform":25000,"beamStrength":"FLT_MAX"},
          ["p2rr", "p2r"],
          ["p2rr", "p1r"],
          ["p2ll", "p2l"],
          ["p2ll", "p1l"],
          ["p2rr", "rf1rr"],
          ["p2rr", "f6rr"],
          ["p2ll", "rf1ll"],
          ["p2ll", "f6ll"],

          //strength
          {"beamSpring":2001000,"beamDamp":100},
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["p2rr", "rf2r"],
          ["p2rr", "f1rr"],
          ["p2ll", "rf2l"],
          ["p2ll", "f1ll"],
          ["p2rr", "rf1"],
          ["p2rr", "f6r"],
          ["p2ll", "rf1"],
          ["p2ll", "f6l"],

          //corners
          {"beamSpring":1501000,"beamDamp":100},
          {"beamDeform":4500,"beamStrength":"FLT_MAX"},
          ["p1r", "rf1"],
          ["p1r", "f6r"],
          ["p2r", "rf2r"],
          ["p2r", "f5rr"],
          ["p1l", "rf1"],
          ["p1l", "f6l"],
          ["p2l", "rf2l"],
          ["p2l", "f5ll"],

          //rigids
          {"beamDeform":15000,"beamStrength":"FLT_MAX"},
          ["rf1rr","f6rr"],
          ["rf1ll","f6ll"],
          ["rf1ll", "f1ll"],
          ["rf1rr", "f1rr"],

          //extra
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["p2ll", "rf1rr"],
          ["p2rr", "rf1ll"],
          ["rf1", "p2l"],
          ["rf1", "p2r"],
          ["rf1", "f6ll"],
          ["rf1", "f6rr"],
          {"deformGroup":""},

          //b pillar main shape
          {"deformLimitExpansion":1.2},
          {"beamSpring":1201000,"beamDamp":105},
          {"beamDeform":35000,"beamStrength":"FLT_MAX"},
          ["rf3ll", "f10ll", {"deformGroup":"quarterglass_L_break","deformationTriggerRatio":0.01}],
          ["rf3rr", "f10rr", {"deformGroup":"quarterglass_R_break","deformationTriggerRatio":0.01}],
          {"deformGroup":"rearglass_break","deformationTriggerRatio":0.01}
          ["rf4ll", "f10l"],
          ["rf4rr", "f10r"],
          {"deformGroup":""}

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":12500,"beamStrength":"FLT_MAX"},
          {"deformGroup":"quarterglass_L_break","deformationTriggerRatio":0.01}
          ["rf3ll", "f10l"],
          ["f10ll", "rf4ll"],
          {"deformGroup":"quarterglass_R_break","deformationTriggerRatio":0.01}
          ["rf4rr", "f10rr"],
          ["rf3rr", "f10r"],
          {"deformGroup":""}

          //rigids
          {"deformLimitExpansion":""},
          {"beamDeform":15000,"beamStrength":"FLT_MAX"},
          //corner
          {"deformGroup":"rearglass_break","deformationTriggerRatio":0.01}
          ["rf4ll", "f10"],
          ["rf4", "f10l"],
          ["rf4", "f10r"],
          ["rf4rr", "f10"],
          {"deformGroup":"quarterglass_R_break","deformationTriggerRatio":0.01}
          ["f10rr", "rf3r"],
          ["rf3r", "f10r"],
          {"deformGroup":"quarterglass_L_break","deformationTriggerRatio":0.01}
          ["f10ll", "rf3l"],
          ["rf3l", "f10l"],
          {"deformGroup":""}
          //vertical
          {"beamDeform":3000,"beamStrength":"FLT_MAX"},
          {"deformGroup":"quarterglass_L_break","deformationTriggerRatio":0.01}
          ["rf3ll", "f8ll"],
          ["rf4ll", "f9ll"],
          {"deformGroup":"quarterglass_R_break","deformationTriggerRatio":0.01}
          ["rf3rr", "f8rr"],
          ["rf4rr", "f9rr"],
          {"deformGroup":""}

          //bleed through
          {"deformLimitExpansion":1.2},
    ],

    "triangles":[
        ["id1:", "id2:", "id3:"],
        {"groundModel":"metal"},

        {"dragCoef":6},
        //roof
        {"group":"revuelto_roof"},
            ["rf3r", "rf3", "rf4"],
            ["rf4rr", "rf3r", "rf4"],
            ["rf4ll", "rf4", "rf3"],
            ["rf4ll", "rf3", "rf3l"],
            ["rf3l", "rf3", "rf2"],
            ["rf3", "rf3r", "rf2"],
            ["rf2", "rf2r", "rf1"],
            ["rf2l", "rf2", "rf1"],
            ["rf3l", "rf2", "rf2l"],
            ["rf2l", "rf1", "rf1ll"],
            ["rf2r", "rf1rr", "rf1"],
            ["rf2r", "rf2", "rf3r"],

        {"triangleType":"NONCOLLIDABLE"}
            ["rqs8r", "rf4rr", "rf4"],
            ["rf4", "rf4ll", "rqs8l"],
            ["rqs8l", "rbs1l", "rf4"],
            ["rbs1r", "rqs8r", "rf4"],
            ["rbs1l", "rbs1r", "rf4"],
        {"triangleType":"NORMALTYPE"}


        //rear
        {"dragCoef":0},
        {"group":"revuelto_rearwall"},
        ["rf4ll", "f10l", "f10"],
        ["f10", "rf4", "rf4ll"],
        ["rf4", "f10", "rf4rr"],
        ["rf4rr", "f10", "f10r"],

        //windshield
        {"dragCoef":8},
        {"group":"revuelto_windshield"},
        ["p2l", "f6ll", "p1l"],
        ["p2l", "p1l", "rf1ll"],
        ["p1r", "f6rr", "p2r"],
        ["rf1rr", "p1r", "p2r"],
        ["p2r", "f6rr", "f6r"],
        ["rf1rr", "p2r", "rf1"],
        ["rf1", "p2l", "rf1ll"],
        ["p2l", "f6l", "f6ll"],
        {"optional":true},
        ["p2r", "wi1", "rf1"],
        ["rf1", "wi1", "p2l"],
        ["wi1", "p2r", "f6r"],
        ["wi1", "f6l", "p2l"],
        ["wi1", "f6r", "f6l"],
        {"optional":false},

        //door openings
        {"dragCoef":11},
        {"group":"revuelto_rightside"},
        ["rf1rr", "rf2r",  "p2rr"],
        ["p2rr",  "p1r",   "rf1rr"],
        ["f6rr",  "p1r",   "p2rr"],
        ["f10rr", "rf3r", "rf3rr"],
        ["p2rr",  "rf2r",  "f10rr"],
        ["rf3r", "f10rr", "rf2r"],
        ["f7rr",  "p2rr",  "f8rr"],
        ["f10rr", "f8rr",  "p2rr"],
        ["f5rr",  "p2rr",  "f7rr"],
        ["f6rr",  "p2rr",  "f5rr"],

        {"group":"revuelto_leftside"},
        ["rf2l",  "rf1ll", "p2ll"],
        ["p1l",   "p2ll",  "rf1ll"],
        ["p1l",   "f6ll",  "p2ll"],
        ["rf3l", "f10ll", "rf3ll"],
        ["rf2l",  "p2ll",  "f10ll"],
        ["f10ll", "rf3l", "rf2l"],
        ["p2ll",  "f7ll",  "f8ll"],
        ["f8ll",  "f10ll", "p2ll"],
        ["p2ll",  "f5ll",  "f7ll"],
        ["p2ll",  "f6ll",  "f5ll"],

        //right side
        {"dragCoef":11},
        {"group":"revuelto_rightside"},
        //["rf4rr", "f10r", "rf3rr"],
        //["f10rr", "rf3rr", "f10r"],

        //left side
        {"group":"revuelto_leftside"},
        //["rf3ll", "f10ll", "f10l"],
        //["rf3ll", "f10l", "rf4ll"],
        {"group":""},
        ],
},
}