{
"spoiler_f": {
    "information":{
        "authors":"BeamNG",
        "name":"Large Front Spoiler",
        "value":1600,
    }
    "slotType" : "superfront",

    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["dhq_spoiler_f",  ["spoiler_f"]],
		["dhq_spoiler_fa", ["spoiler_fa"]],
    ],
	
	"variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
        ["$downforce_f", "range", "", "Downforce", 260, 100, 300, "Front Downforce", "Percentage of adjustment range"]
	],
	
    "nodes": [
        ["id", "posX", "posY", "posZ"],
        {"selfCollision":false},
        {"collision":false}
        {"frictionCoef":0.8},
        {"nodeMaterial":"|NM_PLASTIC"},
        {"nodeWeight":1.0},
		
		//spoiler
		
		["spoilf6",0.411,-2.481,0.216],
		["spoilf7",-0.411,-2.481,0.237],
		
		{"selfCollision":true},
        {"collision":true}
        {"group":"spoiler_f"},
		
		["spoilf0",1.092,-2.71,0.374],
		["spoilf1",0.626,-2.71,0.374],
		["spoilf2",0.202,-2.71,0.406],
		["spoilf3",-0.202,-2.71,0.406],
		["spoilf4",-0.626,-2.71,0.374],
		["spoilf5",-1.092,-2.71,0.374],
		["spoilf8",0.202,-2.364,0.452],
		["spoilf9",-0.202,-2.364,0.452],
		["spoilf10",1.092,-2.289,0.509],
		["spoilf11",0.626,-2.289,0.509],
		["spoilf12",-0.626,-2.289,0.509],
		["spoilf13",-1.092,-2.289,0.509],
		
		//spoiler fixing
		{"nodeWeight":2.0},
		{"group":"spoiler_fa"},
		
		["spfx0",0.294,-2.617,0.387],
		["spfx1",-0.294,-2.617,0.387],
		["spfx2",0.294,-2.238,0.445],
		["spfx3",-0.294,-2.238,0.445],
		["spfx4",0.119,-2.197,0.271],
		["spfx5",-0.119,-2.197,0.271],
		
		{"group":""},
    ],

    "beams": [
		["id1:", "id2:"],
		{"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
		{"beamSpring":1101000,"beamDamp":50},
		{"beamDeform":19000,"beamStrength":"FLT_MAX"},
		{"breakGroupType":0},
		
		//spoiler
		
		["spoilf5","spoilf7"],
		["spoilf8","spoilf7"],
		["spoilf10","spoilf6"],
		["spoilf8","spoilf9"],
		["spoilf3","spoilf6"],
		["spoilf9","spoilf4"],
		["spoilf11","spoilf6"],
		["spoilf12","spoilf5"],
		["spoilf4","spoilf12"],
		["spoilf11","spoilf1"],
		["spoilf8","spoilf11"],
		["spoilf1","spoilf2"],
		["spoilf13","spoilf7"],
		["spoilf11","spoilf10"],
		["spoilf3","spoilf7"],
		["spoilf0","spoilf6"],
		["spoilf6","spoilf7"],
		["spoilf11","spoilf0"],
		["spoilf2","spoilf9"],
		["spoilf3","spoilf8"],
		["spoilf8","spoilf6"],
		["spoilf12","spoilf9"],
		["spoilf1","spoilf6"],
		["spoilf4","spoilf7"],
		["spoilf13","spoilf12"],
		["spoilf3","spoilf9"],
		["spoilf8","spoilf2"],
		["spoilf2","spoilf7"],
		["spoilf9","spoilf7"],
		["spoilf9","spoilf6"],
		["spoilf4","spoilf5"],
		["spoilf5","spoilf13"],
		["spoilf10","spoilf0"],
		["spoilf3","spoilf4"],
		["spoilf2","spoilf3"],
		["spoilf2","spoilf6"],
		["spoilf0","spoilf1"],
		["spoilf12","spoilf7"],
		["spoilf1","spoilf10"],
		["spoilf8","spoilf1"],
		["spoilf2","spoilf11"],
		["spoilf4","spoilf13"],
		["spoilf3","spoilf12"],
		
		//spoiler to spoiler attach
		{"beamDeform":8000,"beamStrength":11000},
		{"breakGroup":"spoil_fu"},
		
		["spoilf2","spfx0"],
		["spoilf2","spfx1"],
		["spoilf2","spfx2"],
		["spoilf2","spfx3"],
		
		["spoilf3","spfx0"],
		["spoilf3","spfx1"],
		["spoilf3","spfx2"],
		["spoilf3","spfx3"],
		
		["spoilf8","spfx0"],
		["spoilf8","spfx1"],
		["spoilf8","spfx2"],
		["spoilf8","spfx3"],
		
		["spoilf9","spfx0"],
		["spoilf9","spfx1"],
		["spoilf9","spfx2"],
		["spoilf9","spfx3"],
		
		
		["spoilf2","spfx4"],
		["spoilf3","spfx4"],
		["spoilf8","spfx4"],
		["spoilf9","spfx4"],
		
		["spoilf2","spfx5"],
		["spoilf3","spfx5"],
		["spoilf8","spfx5"],
		["spoilf9","spfx5"],
		
		{"breakGroup":""},
		
		//spoiler attach
		{"beamSpring":1801000,"beamDamp":50},
		{"beamDeform":35000,"beamStrength":"FLT_MAX"},
		
		["spfx0","spfx5"],
		["spfx2","spfx5"],
		["spfx4","spfx5"],
		["spfx1","spfx4"],
		["spfx3","spfx4"],
		["spfx0","spfx1"],
		["spfx1","spfx2"],
		["spfx2","spfx0"],
		["spfx1","spfx5"],
		["spfx0","spfx3"],
		["spfx3","spfx5"],
		["spfx1","spfx3"],
		["spfx2","spfx3"],
		["spfx0","spfx4"],
		["spfx4","spfx2"],
		
		//spoiler attach to nosecone
		{"beamSpring":701000,"beamDamp":50},
		{"beamDeform":35000,"beamStrength":11000},
		{"breakGroup":"spoil_fl"},
		
		["spfx2","n2"],
		["spfx2","n2l"],
		["spfx2","n1"],
		["spfx2","n1l"],
		["spfx2","n4"],
		["spfx2","n4l"],
		
		["spfx3","n2"],
		["spfx3","n2r"],
		["spfx3","n1"],
		["spfx3","n1r"],
		["spfx3","n4"],
		["spfx3","n4r"],
		
		["spfx4","n4"],
		["spfx4","n4l"],
		["spfx4","n5"],
		["spfx4","n5l"],
		
		["spfx5","n4"],
		["spfx5","n4r"],
		["spfx5","n5"],
		["spfx5","n5r"],
		
		//vibration absorbers and rigidify to nosecone/frame
		
		{"beamSpring":0},
		{"beamDeform":20000,"beamStrength":"FLT_MAX"},
		{"breakGroupType":1},
		{"breakGroup":["spoil_fl","spoil_fu"]}
		
		["spoilf13","n4rr"{"beamDamp":1500,"dampCutoffHz":200}],
		["spoilf5", "n4rr"{"beamDamp":1500,"dampCutoffHz":200}],
		
		["spoilf10","n4ll"{"beamDamp":1500,"dampCutoffHz":200}],
		["spoilf0", "n4ll"{"beamDamp":1500,"dampCutoffHz":200}],
		
		{"beamSpring":1200000},
		{"beamDeform":7000,"beamStrength":10000},
		
		["spoilf4","fx1r"],
		["spoilf4","fx1l"],
		["spoilf12","fx1r"],
		["spoilf12","fx1l"],
		
		["spoilf1","fx1r"],
		["spoilf1","fx1l"],
		["spoilf11","fx1r"],
		["spoilf11","fx1l"],
		
		["spoilf4","f2r"],
		["spoilf4","f2l"],
		["spoilf12","f2r"],
		["spoilf12","f2l"],
		
		["spoilf1","f2r"],
		["spoilf1","f2l"],
		["spoilf11","f2r"],
		["spoilf11","f2l"],
		
		{"breakGroup":""},
		{"breakGroupType":1},
		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "triangles": [
		["id1:","id2:","id3:"],
		{"dragCoef":25},
		{"groundModel":"plastic"},
		
		//spoiler
		
		["spoilf4", "spoilf13", "spoilf5", {"liftCoef":"$downforce_f", "stallAngle":0.4}],
		["spoilf4", "spoilf12", "spoilf13",{"liftCoef":"$downforce_f", "stallAngle":0.4}],
		["spoilf3", "spoilf12", "spoilf4", {"liftCoef":"$downforce_f", "stallAngle":0.4}],
		["spoilf3", "spoilf9",  "spoilf12",{"liftCoef":"$downforce_f", "stallAngle":0.4}],
		
		["spoilf0", "spoilf10", "spoilf11",{"liftCoef":"$downforce_f", "stallAngle":0.4}],
		["spoilf0", "spoilf11", "spoilf1", {"liftCoef":"$downforce_f", "stallAngle":0.4}],
		["spoilf1", "spoilf11", "spoilf8", {"liftCoef":"$downforce_f", "stallAngle":0.4}],
		["spoilf1", "spoilf8",  "spoilf2", {"liftCoef":"$downforce_f", "stallAngle":0.4}],
		
		{"dragCoef":5},
		
		["spoilf2", "spoilf8", "spoilf9"],
		["spoilf2", "spoilf9", "spoilf3"],
		
		//fixing
		
		["spfx0", "spfx2", "spfx3"],
		["spfx0", "spfx3", "spfx1"],
		
    ],
}

"spoiler_r": {
    "information":{
        "authors":"BeamNG",
        "name":"Large Rear Spoiler",
        "value":1600,
    }
    "slotType" : "supertail",
	
	"variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
        ["$downforce_r", "range", "", "Downforce", 260, 100, 300, "Rear Downforce", "Percentage of adjustment range"]
	],
	
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["dhq_spoiler_r",   ["spoiler_r"]],
		["dhq_spoiler_ral", ["spoiler_ral"]],
		["dhq_spoiler_rar", ["spoiler_rar"]],
    ],

    "nodes": [
        ["id", "posX", "posY", "posZ"],
        {"selfCollision":false},
        {"collision":false}
        {"frictionCoef":0.8},
        {"nodeMaterial":"|NM_PLASTIC"},
        {"nodeWeight":1.0},
		
		//spoiler
		
		["spoilr14",0.596,2.413,0.915],
		["spoilr15",-0.596,2.413,0.915],
		
		{"selfCollision":true},
        {"collision":true}
        {"group":"spoiler_r"},
		
		["spoilr0",1.114,1.982,1.064],
		["spoilr1",0.69,1.982,1.064],
		["spoilr2",0.376,1.982,1.08],
		["spoilr3",-0.376,1.982,1.08],
		["spoilr4",-0.69,1.982,1.064],
		["spoilr5",-1.114,1.982,1.064],
		["spoilr6",1.116,2.401,0.911],
		["spoilr7",-1.116,2.401,0.911],
		["spoilr8",1.114,2.403,1.199],
		["spoilr9",0.69,2.403,1.199],
		["spoilr10",-0.69,2.403,1.199],
		["spoilr11",-1.114,2.403,1.199],
		["spoilr12",0.376,2.411,1.201],
		["spoilr13",-0.376,2.411,1.201],
		
		//spoiler fixing right
		{"nodeWeight":2.0},
		{"group":"spoiler_rar"},
		
		["sprxr0",-0.527,1.926,0.864],
		["sprxr1",-0.527,2.044,1.06],
		["sprxr2",-0.527,2.059,0.589],
		["sprxr3",-0.407,2.097,0.905],
		["sprxr4",-0.642,2.097,0.905],
		["sprxr5",-0.527,2.378,1.07],
		
		//spoiler fixing left
		{"group":"spoiler_ral"},
		
		["sprxl0",0.527,1.926,0.864],
		["sprxl1",0.527,2.044,1.06],
		["sprxl2",0.527,2.059,0.589],
		["sprxl3",0.407,2.097,0.905],
		["sprxl4",0.642,2.097,0.905],
		["sprxl5",0.527,2.378,1.07],
		
		{"group":""},
    ],

    "beams": [
		["id1:", "id2:"],
		{"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
		{"beamSpring":1101000,"beamDamp":50},
		{"beamDeform":15000,"beamStrength":"FLT_MAX"},
		{"breakGroupType":0},
		
		//spoiler
		
		["spoilr4","spoilr7"],
		["spoilr1","spoilr14"],
		["spoilr2","spoilr9"],
		["spoilr12","spoilr13"],
		["spoilr2","spoilr14"],
		["spoilr7","spoilr15"],
		["spoilr9","spoilr1"],
		["spoilr13","spoilr15"],
		["spoilr0","spoilr14"],
		["spoilr3","spoilr10"],
		["spoilr11","spoilr15"],
		["spoilr14","spoilr15"],
		["spoilr4","spoilr10"],
		["spoilr4","spoilr5"],
		["spoilr8","spoilr6"],
		["spoilr10","spoilr15"],
		["spoilr9","spoilr0"],
		["spoilr3","spoilr14"],
		["spoilr1","spoilr8"],
		["spoilr1","spoilr2"],
		["spoilr12","spoilr15"],
		["spoilr13","spoilr4"],
		["spoilr9","spoilr6"],
		["spoilr4","spoilr11"],
		["spoilr8","spoilr0"],
		["spoilr3","spoilr12"],
		["spoilr11","spoilr7"],
		["spoilr5","spoilr11"],
		["spoilr12","spoilr9"],
		["spoilr2","spoilr13"],
		["spoilr9","spoilr14"],
		["spoilr12","spoilr14"],
		["spoilr3","spoilr15"],
		["spoilr10","spoilr7"],
		["spoilr8","spoilr14"],
		["spoilr10","spoilr5"],
		["spoilr5","spoilr15"],
		["spoilr12","spoilr2"],
		["spoilr10","spoilr13"],
		["spoilr0","spoilr1"],
		["spoilr9","spoilr8"],
		["spoilr3","spoilr13"],
		["spoilr0","spoilr6"],
		["spoilr4","spoilr15"],
		["spoilr2","spoilr3"],
		["spoilr13","spoilr14"],
		["spoilr5","spoilr7"],
		["spoilr12","spoilr1"],
		["spoilr2","spoilr15"],
		["spoilr3","spoilr4"],
		["spoilr1","spoilr6"],
		["spoilr11","spoilr10"],
		["spoilr14","spoilr6"],
		
		
		//spoiler attach right
		{"beamSpring":1801000,"beamDamp":50},
		{"beamDeform":35000,"beamStrength":"FLT_MAX"},
		
		["sprxr0","sprxr5"],
		["sprxr1","sprxr5"],
		["sprxr4","sprxr5"],
		["sprxr1","sprxr3"],
		["sprxr3","sprxr0"],
		["sprxr2","sprxr0"],
		["sprxr1","sprxr4"],
		["sprxr4","sprxr3"],
		["sprxr4","sprxr2"],
		["sprxr3","sprxr2"],
		["sprxr5","sprxr2"],
		["sprxr1","sprxr2"],
		["sprxr3","sprxr5"],
		["sprxr4","sprxr0"],
		["sprxr0","sprxr1"],
		
		
		
		//spoiler attach left
		{"beamSpring":1801000,"beamDamp":50},
		{"beamDeform":35000,"beamStrength":"FLT_MAX"},
		
		["sprxl0","sprxl5"],
		["sprxl1","sprxl5"],
		["sprxl4","sprxl5"],
		["sprxl1","sprxl3"],
		["sprxl3","sprxl0"],
		["sprxl2","sprxl0"],
		["sprxl1","sprxl4"],
		["sprxl4","sprxl3"],
		["sprxl4","sprxl2"],
		["sprxl3","sprxl2"],
		["sprxl5","sprxl2"],
		["sprxl1","sprxl2"],
		["sprxl3","sprxl5"],
		["sprxl4","sprxl0"],
		["sprxl0","sprxl1"],
		
		//spoiler attach to tailcone
		{"beamSpring":701000,"beamDamp":50},
		{"beamDeform":8000,"beamStrength":10000},
		
		//right
		{"breakGroup":"spoil_rrl"},
		
		["sprxr0","t1r"],
		["sprxr0","t2r"],
		["sprxr0","t1rr"],
		["sprxr0","t2rr"],
		["sprxr0","t3r"],
		["sprxr3","t2"],
		["sprxr4","t2rr"],
		
		["sprxr2","t3r"],
		["sprxr2","t3rr"],
		["sprxr2","t4r"],
		["sprxr2","t4rr"],
		["sprxr2","t3r"],
		["sprxr2","t5r"],
		
		//left
		{"breakGroup":"spoil_rll"},
		
		["sprxl0","t1l"],
		["sprxl0","t2l"],
		["sprxl0","t1ll"],
		["sprxl0","t2ll"],
		["sprxl0","t3l"],
		["sprxl3","t2"],
		["sprxl4","t2ll"],
		
		["sprxl2","t3l"],
		["sprxl2","t3ll"],
		["sprxl2","t4l"],
		["sprxl2","t4ll"],
		["sprxl2","t3l"],
		["sprxl2","t5l"],
		
		//spoiler to spoiler attach
		{"beamSpring":1101000,"beamDamp":50},
		{"beamDeform":8000,"beamStrength":10000},
		
		//right
		{"breakGroup":"spoil_rru"},
		
		["sprxr5","spoilr3"],
		["sprxr5","spoilr4"],
		["sprxr5","spoilr10"],
		["sprxr5","spoilr13"],
		
		["sprxr1","spoilr3"],
		["sprxr1","spoilr4"],
		["sprxr1","spoilr10"],
		["sprxr1","spoilr13"],
		
		["sprxr3","spoilr3"],
		["sprxr3","spoilr4"],
		["sprxr3","spoilr10"],
		["sprxr3","spoilr13"],
		
		["sprxr4","spoilr3"],
		["sprxr4","spoilr4"],
		["sprxr4","spoilr10"],
		["sprxr4","spoilr13"],
		
		//left
		{"breakGroup":"spoil_rlu"},
		
		["sprxl5","spoilr1"],
		["sprxl5","spoilr2"],
		["sprxl5","spoilr9"],
		["sprxl5","spoilr12"],
		
		["sprxl1","spoilr1"],
		["sprxl1","spoilr2"],
		["sprxl1","spoilr9"],
		["sprxl1","spoilr12"],
		
		["sprxl3","spoilr1"],
		["sprxl3","spoilr2"],
		["sprxl3","spoilr9"],
		["sprxl3","spoilr12"],
		
		["sprxl4","spoilr1"],
		["sprxl4","spoilr2"],
		["sprxl4","spoilr9"],
		["sprxl4","spoilr12"],
		
		
		//vibration absorbers and rigidify to nosecone/frame
		
		{"beamSpring":0},
		{"beamDeform":20000,"beamStrength":40000},
		{"breakGroupType":1},
		{"breakGroup":["spoil_rrl","spoil_rll","spoil_rru","spoil_rlu"]}
		
		["spoilr7","t4rr"{"beamDamp":1500,"dampCutoffHz":200}],
		["spoilr5","t5rr"{"beamDamp":1500,"dampCutoffHz":200}],
		
		["spoilr6","t4ll"{"beamDamp":1500,"dampCutoffHz":200}],
		["spoilr0","t5ll"{"beamDamp":1500,"dampCutoffHz":200}],
		
		{"beamSpring":1200000},
		{"beamDeform":7000,"beamStrength":7000},
		
		["spoilr4","rx1r"],
		["spoilr4","rx1l"],
		["spoilr15","rx1r"],
		["spoilr15","rx1l"],
		
		["spoilr1","rx1r"],
		["spoilr1","rx1l"],
		["spoilr14","rx1r"],
		["spoilr14","rx1l"],
		
		["spoilr4","r1"],
		["spoilr15","r1"],
		["spoilr1","r1"],
		["spoilr14","r1"],
		
		{"breakGroupType":0},
		{"breakGroup":""},
		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "triangles": [
		["id1:","id2:","id3:"],
		{"dragCoef":35},
		{"groundModel":"plastic"},
		
		//spoiler
		
		["spoilr11","spoilr5", "spoilr10", {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr5", "spoilr4", "spoilr10", {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr13","spoilr10","spoilr4",  {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr13","spoilr4", "spoilr3",  {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr13","spoilr3", "spoilr2",  {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr13","spoilr2", "spoilr12", {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr12","spoilr2", "spoilr1",  {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr12","spoilr1", "spoilr9",  {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr8", "spoilr9", "spoilr1",  {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		["spoilr8", "spoilr1", "spoilr0",  {"liftCoef":"$downforce_r", "stallAngle":0.4}],
		
		{"dragCoef":5},
		
		["spoilr5", "spoilr11", "spoilr7"],
		["spoilr6", "spoilr8",  "spoilr0"],
		
		//fixing
		
		//["spfx0", "spfx2", "spfx3"],
		
		
    ],
}

}