{
"man_spoiler_lx_large": {
    "information":{
        "authors":"BeamNG",
        "name":"Spoiler",
        "value":150,
    }
    "slotType" : "man_spoiler_lx",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
		 ["man_cab_lx_spoiler_large", ["man_spoiler"]],
		 ["man_cab_lx_spoiler_mount", ["semi_daycab_cowl","semi_daycab_roof","semi_daycab_floor","semi_daycab_backwall","semi_dash"]],
		 ["man_cab_lx_spoiler_support", ["man_spoiler_support"]],
		 ["man_cab_lx_sidespoiler_top_l", ["man_spoiler_side_top_l"]],
		 ["man_cab_lx_sidespoiler_top_r", ["man_spoiler_side_top_r"]],
		 ["man_cab_lx_sidespoiler_l", ["man_sidespoiler_l"]],
		 ["man_cab_lx_sidespoiler_r", ["man_sidespoiler_r"]],
		 ["man_cab_lx_sidespoiler_fender_l", ["man_sidespoiler_l"]],
		 ["man_cab_lx_sidespoiler_fender_r", ["man_sidespoiler_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.14},
["msplr0", 0.70800, -1.87600, 3.56700],
["msplr1", -0.70800, -1.87600, 3.56700],
["msplr2", 0.00000, -1.77700, 3.68500],
["msplr3", 0.89800, -1.42100, 3.56700],
["msplr4", 0.85400, -1.42100, 3.83000],
["msplr5", 0.00000, -1.42100, 3.82900],
["msplr6", -0.85400, -1.42100, 3.83000],
["msplr7", -0.89800, -1.42100, 3.56700],
["msplr8", 0.00000, -0.97700, 3.96600],
["msplr9", 0.92900, -0.96800, 3.94700, {"group":["man_spoiler", "man_spoiler_support"]},],
["msplr10", -0.92900, -0.96800, 3.94700, {"group":["man_spoiler", "man_spoiler_support"]},],
["msplr11", 0.96300, -0.92100, 3.56700],
["msplr12", -0.96300, -0.92100, 3.56700],
["msplr13", 0.00000, -0.73400, 4.01300],
["msplr14", 1.13300, -0.52300, 3.99900],
["msplr15", -1.13300, -0.52300, 3.99900],
["msplr16", 1.18300, -0.46700, 3.56700],
["msplr17", -1.18300, -0.46700, 3.56700],

{"group":"man_spoiler_side_top_l"},
["msplrtl0", 0.83300, -1.50300, 3.56000],
["msplrtl1", 0.86700, -0.95600, 3.55800],
["msplrtl2", 1.06800, -0.74800, 3.03900],
["msplrtl3", 1.05000, -0.57400, 3.88700],
["msplrtl4", 1.18300, -0.40500, 3.03900],

{"group":"man_spoiler_side_top_r"},
["msplrtr0", -0.83300, -1.50300, 3.56000],
["msplrtr1", -0.86700, -0.95600, 3.55800],
["msplrtr2", -1.06800, -0.74800, 3.03900],
["msplrtr3", -1.05000, -0.57400, 3.88700],
["msplrtr4", -1.18300, -0.40500, 3.03900],

{"nodeWeight":1.34},

{"group":"man_sidespoiler_l"},
["msplrsl0", 1.07400, -0.72173, 3.02900],
["msplrsl1", 1.11500, -0.69273, 2.45100],
["msplrsl2", 1.11500, -0.68973, 1.91900],
["msplrsl3", 1.24300, -0.66073, 1.38400],
["msplrsl4", 0.95798, -0.56100, 1.70600{"selfCollision":false, "collision":false}],
["msplrsl5", 0.95798, -0.56100, 2.45100{"selfCollision":false, "collision":false}],
["msplrsl6", 1.20700, -0.40800, 3.02900],
["msplrsl7", 1.22400, -0.37900, 2.45100],
["msplrsl8", 1.24100, -0.37600, 1.38400],
["msplrsl9", 1.22400, -0.37600, 1.91900],

{"group":"man_sidespoiler_r"},
["msplrsr0", -1.07400, -0.72173, 3.02900],
["msplrsr1", -1.11500, -0.69273, 2.45100],
["msplrsr2", -1.11500, -0.68973, 1.91900],
["msplrsr3", -1.24300, -0.66073, 1.38400],
["msplrsr4", -0.95798, -0.56100, 1.70600{"selfCollision":false, "collision":false}],
["msplrsr5", -0.95798, -0.56100, 2.45100{"selfCollision":false, "collision":false}],
["msplrsr6", -1.20700, -0.40800, 3.02900],
["msplrsr7", -1.22400, -0.37900, 2.45100],
["msplrsr8", -1.24100, -0.37600, 1.38400],
["msplrsr9", -1.22400, -0.37600, 1.91900],



         {"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"],
["msplr8","msplr13"],
["msplr15","msplr17"],
["msplr16","msplr14"],
["msplr9","msplr14"],
["msplr16","msplr11"],
["msplr12","msplr17"],
["msplr15","msplr10"],
["msplr0","msplr4"],
["msplr1","msplr6"],
["msplr8","msplr9"],
["msplr13","msplr14"],
["msplr8","msplr10"],
["msplr13","msplr15"],
["msplr6","msplr5"],
["msplr4","msplr5"],
["msplr11","msplr14"],
["msplr9","msplr16"],
["msplr4","msplr11"],
["msplr3","msplr9"],
["msplr9","msplr5"],
["msplr4","msplr8"],
["msplr8","msplr14"],
["msplr9","msplr13"],
["msplr2","msplr4"],
["msplr0","msplr5"],
["msplr2","msplr6"],
["msplr1","msplr5"],
["msplr10","msplr5"],
["msplr6","msplr8"],
["msplr8","msplr15"],
["msplr10","msplr13"],
["msplr10","msplr17"],
["msplr12","msplr15"],
["msplr6","msplr12"],
["msplr7","msplr10"],
["msplr13","msplr16"],
["msplr11","msplr8"],
["msplr3","msplr5"],
["msplr7","msplr5"],
["msplr12","msplr8"],
["msplr13","msplr17"],
["msplr16","msplr15"],
["msplr4","msplr10"],
["msplr3","msplr6"],
["msplr17","msplr14"],
["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"],

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

//sidespoilers
["msplrsl9","msplrsl2"],
["msplrsl7","msplrsl1"],
["msplrsl2","msplrsl3"],
["msplrsl8","msplrsl3"],
["msplrsl7","msplrsl6"],
["msplrsl9","msplrsl7"],
["msplrsl0","msplrsl1"],
["msplrsl1","msplrsl2"],
["msplrsl6","msplrsl0"],
["msplrsl8","msplrsl9"],
["msplrsl9","msplrsl3"],
["msplrsl2","msplrsl8"],
["msplrsl1","msplrsl9"],
["msplrsl2","msplrsl7"],
["msplrsl7","msplrsl0"],
["msplrsl1","msplrsl6"],
["msplrsl7","msplrsl5"],
["msplrsl1","msplrsl5"],
["msplrsl6","msplrsl5"],
["msplrsl0","msplrsl5"],
["msplrsl9","msplrsl5"],
["msplrsl2","msplrsl5"],
["msplrsl8","msplrsl4"],
["msplrsl3","msplrsl4"],
["msplrsl9","msplrsl4"],
["msplrsl2","msplrsl4"],
["msplrsl5","msplrsl4"],

["msplrsr9","msplrsr2"],
["msplrsr7","msplrsr1"],
["msplrsr2","msplrsr3"],
["msplrsr8","msplrsr3"],
["msplrsr7","msplrsr6"],
["msplrsr9","msplrsr7"],
["msplrsr0","msplrsr1"],
["msplrsr1","msplrsr2"],
["msplrsr6","msplrsr0"],
["msplrsr8","msplrsr9"],
["msplrsr9","msplrsr3"],
["msplrsr2","msplrsr8"],
["msplrsr1","msplrsr9"],
["msplrsr2","msplrsr7"],
["msplrsr7","msplrsr0"],
["msplrsr1","msplrsr6"],
["msplrsr7","msplrsr5"],
["msplrsr1","msplrsr5"],
["msplrsr6","msplrsr5"],
["msplrsr0","msplrsr5"],
["msplrsr9","msplrsr5"],
["msplrsr2","msplrsr5"],
["msplrsr8","msplrsr4"],
["msplrsr3","msplrsr4"],
["msplrsr9","msplrsr4"],
["msplrsr2","msplrsr4"],
["msplrsr5","msplrsr4"],



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

	{"breakGroup":"man_spoiler_attach_fr"},
            ["dc16rr", "msplr1"],
            ["dc16r", "msplr1"],
            ["dc16rrr", "msplr1"],
            ["dc15rrr", "msplr1"],
            ["msplr1", "dc15rr"],
		


	{"breakGroup":"man_spoiler_attach_fl"},
            ["dc16l", "msplr0"],
            ["msplr0", "dc16ll"],
            ["dc16lll", "msplr0"],
            ["msplr0", "dc15ll"],
            ["dc15lll", "msplr0"],
	{"disableMeshBreaking":false,"disableTriangleBreaking":false}
	
          {"beamDeform":"FLT_MAX","beamStrength":15000},	
	{"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"],
			
{"beamDeform":"FLT_MAX","beamStrength":30000},
{"breakGroup":"man_sidespoiler_l_attach_1"},
            ["dc13", "msplrsl9"],
            ["dc11", "msplrsl9"],
            ["dc11ll", "msplrsl9"],
            ["dc13ll", "msplrsl9"],
            ["dc13", "msplrsl2"],
            ["dc11", "msplrsl2"],
            ["dc11ll", "msplrsl2"],
            ["dc13ll", "msplrsl2"],
{"breakGroup":"man_sidespoiler_l_attach_2"},
            ["dc13", "msplrsl6"],
            ["dc15", "msplrsl6"],
            ["dc15ll", "msplrsl6"],
            ["dc13ll", "msplrsl6"],
            ["dc13", "msplrsl0"],
            ["dc15", "msplrsl0"],
            ["dc15ll", "msplrsl0"],
            ["dc13ll", "msplrsl0"],

{"breakGroup":"man_sidespoiler_r_attach_1"},
            ["dc13", "msplrsr9"],
            ["dc11", "msplrsr9"],
            ["dc11ll", "msplrsr9"],
            ["dc13ll", "msplrsr9"],
            ["dc13", "msplrsr2"],
            ["dc11", "msplrsr2"],
            ["dc11ll", "msplrsr2"],
            ["dc13ll", "msplrsr2"],
{"breakGroup":"man_sidespoiler_r_attach_2"},
            ["dc13", "msplrsr6"],
            ["dc15", "msplrsr6"],
            ["dc15ll", "msplrsr6"],
            ["dc13ll", "msplrsr6"],
            ["dc13", "msplrsr0"],
            ["dc15", "msplrsr0"],
            ["dc15ll", "msplrsr0"],
            ["dc13ll", "msplrsr0"],



          {"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"],

            ["msplrsl2", "msplrsl3", "msplrsl8"],
            ["msplrsl8", "msplrsl9", "msplrsl2"],
            ["msplrsl2", "msplrsl9", "msplrsl1"],
            ["msplrsl1", "msplrsl9", "msplrsl7"],
            ["msplrsl7", "msplrsl0", "msplrsl1"],
            ["msplrsl7", "msplrsl6", "msplrsl0"],
            ["msplrsr9", "msplrsr8", "msplrsr2"],
            ["msplrsr8", "msplrsr3", "msplrsr2"],
            ["msplrsr2", "msplrsr1", "msplrsr9"],
            ["msplrsr9", "msplrsr1", "msplrsr7"],
            ["msplrsr7", "msplrsr1", "msplrsr0"],
            ["msplrsr0", "msplrsr6", "msplrsr7"],






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




}