{
"man_spoiler_m": {
    "information":{
        "authors":"BeamNG",
        "name":"Spoiler",
        "value":150,
    }
    "slotType" : "man_spoiler_m",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
		 ["man_cab_m_spoiler", ["man_spoiler"]],
		 ["man_cab_m_spoiler_mount", ["semi_daycab_cowl","semi_daycab_roof","semi_daycab_floor","semi_daycab_backwall","semi_dash"]],
		 ["man_cab_m_spoiler_support", ["man_spoiler_support"]],
		 ["man_cab_m_sidespoiler_top_l", ["man_spoiler_side_top_l"]],
		 ["man_cab_m_sidespoiler_top_r", ["man_spoiler_side_top_r"]],

		 
		//{"deformGroup":"man_sideskirt_l_attach_f", "deformMaterialBase":"man", "deformMaterialDamaged":"man_glass_dmg"},
		//["man_sideskirt_l_base_f", ["man_sideskirt_l", "semi_frame"]],
		{"deformGroup":""},
		

    ],
	
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
        ["$spoilerheight", "range", "", "Spoiler", 1, 1, 1.5, "Spoiler height", "Adjustment of spoiler height", {"stepDis":0.05}]
    ],
	

	
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true}
         {"collision":true}
         //--SIDE STEP--
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"group":"man_spoiler"},
         {"nodeWeight":1.4},
["msplr0", 0.70800, -2.17108, 3.29739],
["msplr1", -0.70800, -2.17108, 3.29739],
["msplr2", 0.00000, -2.07208, 3.41539],
["msplr3", 0.89800, -1.74590, 3.29739],
["msplr4", 0.85400, -1.74590, 3.56039],
["msplr5", 0.00000, -1.74590, 3.55939],
["msplr6", -0.85400, -1.74590, 3.56039],
["msplr7", -0.89800, -1.74590, 3.29739],
["msplr8", 0.00000, -1.16428, 3.69639],
["msplr9", 0.92900, -1.15528, 3.67739, {"group":["man_spoiler", "man_spoiler_support"]},],
["msplr10", -0.92900, -1.15528, 3.67739, {"group":["man_spoiler", "man_spoiler_support"]},],
["msplr11", 0.96300, -1.13928, 3.29739],
["msplr12", -0.96300, -1.13928, 3.29739],






{"group":"man_spoiler_side_top_l"},
["msplrtl0", 0.76471, -1.95782, 3.32076],
["msplrtl1", 0.92608, -1.14109, 3.18068],
["msplrtl2", 0.65099, -1.29260, 3.31206],
["msplrtl3", 0.85943, -1.47638, 3.53793],
["msplrtl4", 0.86278, -1.14880, 3.58226],

{"group":"man_spoiler_side_top_r"},
["msplrtr0", -0.76471, -1.95782, 3.32076],
["msplrtr1", -0.92608, -1.14109, 3.18068],
["msplrtr2", -0.65099, -1.29260, 3.31206],
["msplrtr3", -0.85943, -1.47638, 3.53793],
["msplrtr4", -0.86278, -1.14880, 3.58226],





         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":600800,"beamDamp":312},
          {"beamDeform":20000,"beamStrength":"FLT_MAX"},
		  
["msplr2","msplr0"],
["msplr1","msplr2"],
["msplr7","msplr1"],
["msplr0","msplr3"],
["msplr6","msplr7"],
["msplr3","msplr4"],
["msplr10","msplr12"],
["msplr11","msplr9"],
["msplr4","msplr9"],
["msplr11","msplr3"],
["msplr7","msplr12"],
["msplr10","msplr6"],
["msplr2","msplr5"],
["msplr5","msplr8"],







["msplr0","msplr4"],
["msplr1","msplr6"],
["msplr8","msplr9"],

["msplr8","msplr10"],

["msplr6","msplr5"],
["msplr4","msplr5"],


["msplr4","msplr11"],
["msplr3","msplr9"],
["msplr9","msplr5"],
["msplr4","msplr8"],


["msplr2","msplr4"],
["msplr0","msplr5"],
["msplr2","msplr6"],
["msplr1","msplr5"],
["msplr10","msplr5"],
["msplr6","msplr8"],




["msplr6","msplr12"],
["msplr7","msplr10"],

["msplr11","msplr8"],
["msplr3","msplr5"],
["msplr7","msplr5"],
["msplr12","msplr8"],


["msplr4","msplr10"],
["msplr3","msplr6"],

["msplr12","msplr9"],
["msplr7","msplr4"],
["msplr2","msplr7"],
["msplr2","msplr3"],

//sidespoilers top
["msplrtl3","msplrtl4"],
["msplrtl4","msplrtl2"],
["msplrtl2","msplrtl1"],
["msplrtl1","msplrtl0"],
["msplrtl3","msplrtl0"],
["msplrtl1","msplrtl3"],
["msplrtl3","msplrtl2"],
["msplrtl1","msplrtl4"],
["msplrtl2","msplrtl0"],
            ["msplrtl4", "msplrtl0"],


["msplrtr3","msplrtr4"],
["msplrtr4","msplrtr2"],
["msplrtr2","msplrtr1"],
["msplrtr1","msplrtr0"],
["msplrtr3","msplrtr0"],
["msplrtr1","msplrtr3"],
["msplrtr3","msplrtr2"],
["msplrtr1","msplrtr4"],
["msplrtr2","msplrtr0"],
            ["msplrtr4", "msplrtr0"],





          //attach
          {"beamSpring":5000800,"beamDamp":300},
          {"beamDeform":"FLT_MAX","beamStrength":60000},
{"disableMeshBreaking":true,"disableTriangleBreaking":true}

	{"breakGroup":"man_spoiler_attach_fr"},
            ["msplr1", "dc15rrr"],
            ["msplr1", "dc17rrr"],
            ["msplr1", "dc20"],
            ["msplr1", "dc16rr"],



	{"breakGroup":"man_spoiler_attach_fl"},
            ["msplr0", "dc20"],
            ["msplr0", "dc17lll"],
            ["msplr0", "dc15lll"],
            ["msplr0", "dc16ll"],




	{"disableMeshBreaking":false,"disableTriangleBreaking":false}
	
          {"beamDeform":"FLT_MAX","beamStrength":30000},	
	{"breakGroup":"man_spoiler_attach_r"},
          {"beamPrecompression":"$spoilerheight"},
{"id3:":"fa7r","beamPrecompressionTime":0.1}
	        ["dc15ll", "msplr9"],
			["dc15rr", "msplr10"],
{"beamPrecompressionTime":0.0}
{"beamPrecompression":1.0},

{"breakGroup":"man_sidespoiler_top_l_attach"},
{"disableMeshBreaking":true,"disableTriangleBreaking":true}
{"beamSpring":2000800,"beamDamp":300},
{"beamDeform":"FLT_MAX","beamStrength":30000},

            ["dc15", "msplrtl0"],
			["dc15", "msplrtl1"],
			["dc15", "msplrtl2"],
			["dc15", "msplrtl3"],
			["dc15", "msplrtl4"],
			["dc15ll", "msplrtl0"],
			["dc15ll", "msplrtl1"],
			["dc15ll", "msplrtl2"],
			["dc15ll", "msplrtl3"],
			["dc15ll", "msplrtl4"],
			["dc13", "msplrtl0"],
			["dc13", "msplrtl1"],
			["dc13", "msplrtl2"],
			["dc13", "msplrtl3"],
			["dc13", "msplrtl4"],
			
			{"breakGroup":"man_sidespoiler_top_r_attach"},
            ["dc15", "msplrtr0"],
			["dc15", "msplrtr1"],
			["dc15", "msplrtr2"],
			["dc15", "msplrtr3"],
			["dc15", "msplrtr4"],
			["dc15rr", "msplrtr0"],
			["dc15rr", "msplrtr1"],
			["dc15rr", "msplrtr2"],
			["dc15rr", "msplrtr3"],
			["dc15rr", "msplrtr4"],
			["dc13", "msplrtr0"],
			["dc13", "msplrtr1"],
			["dc13", "msplrtr2"],
			["dc13", "msplrtr3"],
			["dc13", "msplrtr4"],
			




          {"breakGroup":""},

		  {"disableMeshBreaking":true,"disableTriangleBreaking":true}
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"dragCoef":8},
            {"groundModel":"metal"},
            ["msplr15", "msplr17", "msplr12"],
            ["msplr12", "msplr10", "msplr15"],
            ["msplr10", "msplr12", "msplr7"],
            ["msplr7", "msplr6", "msplr10"],
            ["msplr6", "msplr7", "msplr1"],
            ["msplr0", "msplr3", "msplr4"],
            ["msplr4", "msplr3", "msplr11"],
            ["msplr11", "msplr9", "msplr4"],
            ["msplr9", "msplr11", "msplr14"],
            ["msplr14", "msplr11", "msplr16"],
            ["msplr13", "msplr8", "msplr9"],
            ["msplr9", "msplr14", "msplr13"],
            ["msplr13", "msplr10", "msplr8"],
            ["msplr13", "msplr15", "msplr10"],
            ["msplr10", "msplr6", "msplr8"],
            ["msplr8", "msplr6", "msplr5"],
            ["msplr5", "msplr4", "msplr8"],
            ["msplr8", "msplr4", "msplr9"],
            ["msplr5", "msplr2", "msplr4"],
            ["msplr4", "msplr2", "msplr0"],
            ["msplr2", "msplr5", "msplr6"],
            ["msplr6", "msplr1", "msplr2"],

            ["msplrtl2", "msplrtl4", "msplrtl3"],
            ["msplrtl2", "msplrtl3", "msplrtl1"],
            ["msplrtl1", "msplrtl3", "msplrtl0"],
            ["msplrtr2", "msplrtr3", "msplrtr4"],
            ["msplrtr2", "msplrtr1", "msplrtr3"],
            ["msplrtr3", "msplrtr1", "msplrtr0"],

            ["msplrtl4", "msplrtl3", "msplrtl1"],
            ["msplrtr4", "msplrtr1", "msplrtr3"],






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




}