{
"supertail":{
	"information":{
		"name":"Tail Plane",
		"authors":"Darren9"},
		
	"slotType":"supertail",
	
	"flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
         
        ["dhq_tail", ["tail"]],
		["dhq_tailb",["tailaero"]],
		
	],
	
	"nodes":[
		["id", "posX", "posY", "posZ"],
		{"selfCollision":false},
        {"collision":true}
        {"frictionCoef":0.5},
        {"nodeMaterial":"|NM_METAL"},
        {"nodeWeight":2.0},
		
		["tail0",0.56,0.538,0.70],
		["tail1",-0.56,0.538,0.70],
		
        {"group":"tail"},
		
		["tail2",0.56,1.297,0.70],
		["tail3",-0.56,1.297,0.70],
		
		{"selfCollision":true},
		
		["tail4",0.56,2.088,0.70  {"group":["tail","tailaero"]}],
		["tail5",-0.56,2.088,0.70 {"group":["tail","tailaero"]}],
		["tail6",0.56,2.139,0.379],
		["tail7",0.56,2.389,1.066],
		["tail8",-0.56,2.139,0.379],
		["tail9",-0.56,2.389,1.066],
		["tail10",0.56,2.088,1.066],
		["tail11",-0.56,2.088,1.066],
		
		//aero surface
		{"group":"tailaero"},
		{"selfCollision":false},
		
		["taila",0.56,2.389,0.70],
		["tailb",-0.56,2.389,0.70],
		{"nodeWeight":1.0},
		["tailc",0.0,2.239,0.999],
		
		{"group":""},
		
		["taild",0.56,2.098,0.70],
		["taile",-0.56,2.098,0.70],
		
		//rail for tail
		{"nodeWeight":2.0},
		
		["trrl",0.56,2.04,0.70],
		["trrr",-0.56,2.04,0.70],
		
	],

	"beams":[
		["id1:", "id2:"],
		{"breakGroupType":0},
		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
		{"beamSpring":1800000,"beamDamp":50},
		{"beamDeform":30000,"beamStrength":"FLT_MAX"},
		
		["tail2","tail3"],
		["tail5","tail0"],
		["tail4","tail1"],
		["tail4","tail3"],
		["tail6","tail5"],
		["tail7","tail9"],
		["tail5","tail2"],
		["tail7","tail5"],
		["tail1","tail3"],
		["tail7","tail4"],
		["tail5","tail1"],
		["tail0","tail4"],
		["tail6","tail4"],
		["tail4","tail5"],
		["tail7","tail2"],
		["tail0","tail2"],
		["tail6","tail7"],
		["tail9","tail5"],
		["tail8","tail9"],
		["tail0","tail3"],
		["tail6","tail2"],
		["tail8","tail4"],
		["tail8","tail7"],
		["tail6","tail9"],
		["tail1","tail0"],
		["tail1","tail2"],
		["tail9","tail3"],
		["tail8","tail3"],
		["tail5","tail3"],
		["tail6","tail8"],
		["tail8","tail5"],
		["tail4","tail2"],
		["tail9","tail4"],
		
		["tail11","tail10"],
		["tail11","tail5"],
		["tail11","tail8"],
		["tail11","tail9"],
		["tail11","tail4"],
		["tail11","tail6"],
		["tail11","tail7"],
		["tail10","tail5"],
		["tail10","tail8"],
		["tail10","tail9"],
		["tail10","tail4"],
		["tail10","tail6"],
		["tail10","tail7"],
		["tail10","tail2"],
		["tail11","tail3"],
		
		//long rigidifers
		{"beamDeform":15000,"beamStrength":"FLT_MAX"},
		
		["tail9","tail1"],
		["tail8","tail1"],
		["tail6","tail1"],
		["tail7","tail1"],
		
		["tail8","tail0"],
		["tail6","tail0"],
		["tail7","tail0"],
		["tail9","tail0"],
		
		//aero surface
		{"beamDeform":100000,"beamStrength":"FLT_MAX"},
		
		["taila","tailb"],
		["taila","tail4"],
		["taila","tail5"],
		["tailb","tail4"],
		["tailb","tail5"],
		
		["tailc","taila"],
		["tailc","tailb"],
		["tailc","tail4"],
		["tailc","tail5"],
		["tail9","tail0"],
		
		//swing dampers
		{"beamSpring":0},
		{"beamDeform":200000,"beamStrength":"FLT_MAX"},
		
		["tail9","t4ll"{"beamDamp":800,"dampCutoffHz":100}],
		["tail7","t4rr" {"beamDamp":800,"dampCutoffHz":100}],
		
		
		//tail rail to tailcone
		{"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
		{"beamSpring":500000,"beamDamp":100},
		{"beamDeform":48440,"beamStrength":"FLT_MAX"},
		
		{"breakGroup":"tailcone_R"},
		
		["c10r","trrr"],
		["c10r","trrl"],
		
		["c10r","c10l"{"breakGroup":["tailcone_R","tailcone_L"]}],
		["trrr","trrl"{"breakGroup":["tailcone_R","tailcone_L"]}],
		
		{"breakGroup":"tailcone_L"},
		
		["c10l","trrl"],
		["c10l","trrr"],
		
		{"breakGroup":""},
		
		//rear
		["trrr","t2rr"],
		["trrr","t2r"],
		["trrr","t3rr"],
		["trrr","t3r"],
		["trrr","t6rr"],

		["trrl","t2ll"],
		["trrl","t2l"],
		["trrl","t3ll"],
		["trrl","t3l"],
		["trrl","t6ll"],
		
		//rigidify to chassis
		{"beamSpring":1800000,"beamDamp":50},
		{"beamDeform":80000,"beamStrength":"FLT_MAX"},
		{"breakGroup":"tailcone_R"},
		
		["trrr","c6r"],
		["trrr","c6"],
		["trrr","c6l"],
		["trrl","c6r"],
		["trrl","c6"],
		["trrl","c6l"],
		
		{"breakGroup":"tailcone_L"},
		
		["trrr","c12r"],
		["trrr","c12"],
		["trrr","c12l"],
		["trrl","c12r"],
		["trrl","c12"],
		["trrl","c12l"],
		
		{"breakGroup":""},
		
		
	],
	
	"hydros": [
		["id1:","id2:"],
		{"beamSpring":1800000,"beamDamp":50},
		{"beamDeform":30000,"beamStrength":200000},
		{"beamPrecompression":1.00}
		//swing
		{"breakGroup":"tailcone_R"},
		["c10r","tail3",{"inputSource":"swingwing",   "inputFactor":1.0,"inRate":0.6,"outRate":0.6,"inLimit":1.0,"outLimit":1.945}],
		{"breakGroup":"tailcone_L"},
		["c10l","tail2",{"inputSource":"swingwing",   "inputFactor":1.0,"inRate":0.6,"outRate":0.6,"inLimit":1.0,"outLimit":1.945}],
		{"breakGroup":""},
		["tail4","taild",{"inputSource":"swingwing",   "inputFactor":1.0,"inRate":25,"outRate":25,"inLimit":1.0,"outLimit":28}],
		["tail5","taile",{"inputSource":"swingwing",   "inputFactor":1.0,"inRate":25,"outRate":25,"inLimit":1.0,"outLimit":28}],
		
		//flight
		["taila","tail6",{"inputSource":"superelev",   "inputFactor":-1.0,"inRate":0.9,"outRate":0.9,"inLimit":0.85,"outLimit":1.15}],
		["tailb","tail8",{"inputSource":"superelev",   "inputFactor":-1.0,"inRate":0.9,"outRate":0.9,"inLimit":0.85,"outLimit":1.15}],
		
		
	],
	
	"rails": {
		//swing
		"tailconer": {"links:":["c10r",  "trrr"],  "looped":false, "capped":true}
		"tailconel": {"links:":["c10l",  "trrl"],  "looped":false, "capped":true}
		//flight
		"tailelevr": {"links:":["tail5",  "tailb"],  "looped":false, "capped":true}
		"tailelevl": {"links:":["tail4",  "taila"],  "looped":false, "capped":true}
		//stabilise when folded
		"tailbarr": {"links:":["tail3",  "tail5"],  "looped":false, "capped":true}
		"tailbarl": {"links:":["tail2",  "tail4"],  "looped":false, "capped":true}
		
	},
	
	"slidenodes": [	
		["id:","railName","attached","fixToRail","tolerance","spring","strength","capStrength"],
		//swing
		["tail1", "tailconer", true, true, 0, 2000000, 2000000, 345435],
		["tail3", "tailconer", true, true, 0, 2000000, 2000000, 345435],
		["tail0", "tailconel", true, true, 0, 2000000, 2000000, 345435],
		["tail2", "tailconel", true, true, 0, 2000000, 2000000, 345435],
		//flight
		["taild", "tailelevl", true, true, 0, 1000000, 1000000, 345435],
		["taile", "tailelevr", true, true, 0, 1000000, 1000000, 345435],
		//stabilise when folded
		["trrr", "tailbarr", true, true, 0, 1000000, 1000000, 345435],
		["trrl", "tailbarl", true, true, 0, 1000000, 1000000, 345435],
		
		
	],
	
	"triangles":[
		["id1:", "id2:", "id3:"],
		//lifting triangles
		{"dragCoef":400},
		["tail5", "taild", "taile", {"liftCoef":750,"stallAngle": 0.36}],
		["tail5", "tail4", "taild", {"liftCoef":750,"stallAngle": 0.36}],
		//rudders
		["tail11", "tail9", "tail8", {"liftCoef":650,"stallAngle": 0.20}],
		["tail7", "tail10", "tail6", {"liftCoef":650,"stallAngle": 0.20}],
	],
}
}