{
"ARaz1_wing": {
    "information":{
        "authors":"BeamNG",
        "name":"Mazda Speed Wing",
        "value":1180,
    },

    "slotType" : "ARaz1_wing",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["ARaz1_wing_mazdaspeed", ["ARaz1_wing"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //--FENDER--
         {"collision":true},
         {"selfCollision":true},
         {"nodeWeight":0.6},
         {"group":"ARaz1_wing"},
            ["wing1", 0.00000, 1.23830, 1.02652],
            ["wing2", 0.00000, 1.45279, 1.02652],
            ["wing1r", -0.46948, 1.22831, 1.02652],
            ["wing2r", -0.45179, 1.45279, 1.02652],
            ["wing1rr", -0.53324, 1.19832, 0.98662],
            ["wing2rr", -0.51135, 1.44297, 0.98662],
            ["wing1l", 0.46948, 1.22831, 1.02652],
            ["wing2l", 0.45179, 1.45279, 1.02652],
            ["wing1ll", 0.53324, 1.19832, 0.98662],
            ["wing2ll", 0.51135, 1.44297, 0.98662],

         {"selfCollision":false},
            ["wing1rrr", -0.59505, 1.35615, 0.80730],
            ["wing2rrr", -0.63939, 1.03100, 0.79730],
            ["wing1lll", 0.59505, 1.35615, 0.80730],
            ["wing2lll", 0.63939, 1.03100, 0.79730],


         //rigidifier
         {"selfCollision":false, "collision":false},
         {"nodeWeight":1.0},
            ["wing3", 0.00000, 1.23830, 0.82554],

    ],
    "beams": [
          ["id1:", "id2:"],
          //--FENDER--
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":401000,"beamDamp":20},
          {"beamDeform":17500,"beamStrength":"FLT_MAX"},
          //main shape
          {"deformLimitExpansion":1.2},
            ["wing1", "wing2"],
            ["wing2", "wing2r"],
            ["wing2r", "wing2rr"],
            ["wing2rr", "wing1rrr"],
            ["wing1rrr", "wing2rrr"],
            ["wing2rrr", "wing1rr"],
            ["wing1rr", "wing1r"],
            ["wing1r", "wing1"],
            ["wing1", "wing1l"],
            ["wing1l", "wing1ll"],
            ["wing1ll", "wing2lll"],
            ["wing2lll", "wing1lll"],
            ["wing1lll", "wing2ll"],
            ["wing2ll", "wing2l"],
            ["wing2l", "wing2"],
            ["wing1l", "wing2l"],
            ["wing2ll", "wing1ll"],
            ["wing1r", "wing2r"],
            ["wing2rr", "wing1rr"],



          //cross
          {"deformLimitExpansion":""},
          {"beamDeform":7600,"beamStrength":"FLT_MAX"},
            ["wing2rrr", "wing2rr"],
            ["wing2rr", "wing1r"],
            ["wing1r", "wing2"],
            ["wing2", "wing1l"],
            ["wing1l", "wing2ll"],
            ["wing2ll", "wing2lll"],
            ["wing1lll", "wing1ll"],
            ["wing1ll", "wing2l"],
            ["wing2l", "wing1"],
            ["wing1", "wing2r"],
            ["wing2r", "wing1rr"],
            ["wing1rr", "wing1rrr"],



          //rigids
          {"beamDeform":8280,"beamStrength":"FLT_MAX"},
          //vertical/corner
            ["wing2rrr", "wing1r"],
            ["wing1r", "wing1rrr"],
            ["wing1rrr", "wing2r"],
            ["wing2r", "wing2rrr"],
            ["wing1lll", "wing2l"],
            ["wing2l", "wing2lll"],
            ["wing2lll", "wing1l"],
            ["wing1l", "wing1lll"],
            ["wing1ll", "wing1"],
            ["wing1", "wing2ll"],
            ["wing2ll", "wing2"],
            ["wing2", "wing1ll"],
            ["wing1rr", "wing1"],
            ["wing1", "wing2rr"],
            ["wing2rr", "wing2"],
            ["wing2", "wing1rr"],
            ["wing1r", "wing1l"],
            ["wing1l", "wing2r"],
            ["wing2r", "wing2l"],
            ["wing2l", "wing1r"],
            ["wing2rrr", "wing2"],
            ["wing2", "wing1rrr"],
            ["wing2lll", "wing2"],
            ["wing2", "wing1lll"],




          //rigidifier
          {"beamDeform":3280,"beamStrength":"FLT_MAX"}
            ["wing1", "wing3"],
            ["wing3", "wing2"],
            ["wing3", "wing2r"],
            ["wing1r", "wing3"],
            ["wing3", "wing1rr"],
            ["wing2rr", "wing3"],
            ["wing3", "wing2rrr"],
            ["wing1rrr", "wing3"],
            ["wing3", "wing1lll"],
            ["wing2lll", "wing3"],
            ["wing2ll", "wing3"],
            ["wing3", "wing1ll"],
            ["wing1l", "wing3"],
            ["wing3", "wing2l"],



          //attach
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamDeform":5800,"beamStrength":3000},
          {"breakGroup":"wingR"},
            ["wing2rrr", "t6rrr"],
            ["wing2rrr", "t1rr"],
            ["wing2rrr", "t6rr"],
            ["wing1rr", "t3rr"],
            ["wing1rrr", "t6rr"],
            ["wing1rrr", "t6r"],
            ["wing1rrr", "t4rr"],
            ["wing2rr", "t4rr"],
            ["wing2rr", "t3rr"],
            ["wing1rr", "t4rr"],
            ["wing1rrr", "t3rr"],
            ["wing1rrr", "t6rr"],
            ["wing2rrr", "t3rr"],
            ["wing1rr", "t1rr"],
            ["wing2rrr", "t6r"],
            ["wing1rrr", "t6rrr"],
            ["wing1rrr", "t1rr"],


          {"breakGroup":"wingL"},
            ["wing2lll", "t6lll"],
            ["wing2lll", "t1ll"],
            ["wing2lll", "t6ll"],
            ["wing1ll", "t3ll"],
            ["wing1lll", "t6ll"],
            ["wing1lll", "t6l"],
            ["wing1lll", "t4ll"],
            ["wing2ll", "t4ll"],
            ["wing2ll", "t3ll"],
            ["wing1ll", "t4ll"],
            ["wing1lll", "t3ll"],
            ["wing1lll", "t6ll"],
            ["wing2lll", "t3ll"],
            ["wing1ll", "t1ll"],
            ["wing2lll", "t6l"],
            ["wing1lll", "t6lll"],
            ["wing1lll", "t1ll"],

          {"breakGroup":""},


    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //right fender
            {"groundModel":"metal"},
            {"group":"ARaz1_wing"},
            {"dragCoef":5},
            {"triangleType":"NONCOLLIDABLE"},
            ["wing2rr", "wing1rrr", "wing2rrr"],
            ["wing2rrr", "wing1rr", "wing2rr"],
            ["wing2rr", "wing1rr", "wing1r"],
            ["wing2r", "wing2rr", "wing1r"],
            ["wing1l", "wing1ll", "wing2ll"],
            ["wing2ll", "wing2l", "wing1l"],
            ["wing1ll", "wing2lll", "wing1lll"],
            ["wing1lll", "wing2ll", "wing1ll"],


            {"triangleType":"NORMALTYPE"},
            ["wing1", "wing1l", "wing2l"],
            ["wing2l", "wing2", "wing1"],
            ["wing1", "wing2", "wing2r"],
            ["wing2r", "wing1r", "wing1"],



            {"group":""},
    ],
},
}