{
"frame_supports": {
	"information":{
			"authors":"TonyCartony",
			"name":"Frame Supports",
			"value":200,
	},
	
	"slotType" : "frame_support",

	"slots": [
			["type", "default", "description"],
			["frame_supports","kickstand", "Frame support"],
	],
	
},


"kickstand":{
	"information":{
		"authors":"TonyCartony",
		"name":"Side Kickstand",
	},
	"slotType":"frame_supports",
	
	"flexbodies": [
		 ["mesh", "[group]:", "nonFlexMaterials"],
		 ["kickstand", ["kickstand"]],
	 ],
//--Nodes--
	"nodes":[
		["id", "posX", "posY", "posZ"],
		{"frictionCoef":0.3},
		{"nodeMaterial":"|NM_METAL"},
		{"selfCollision":true},
		{"collision":true},
		{"group":"kickstand"},
		{"nodeWeight":1.0},	
		["kis_l0", 0.32700, 0.08700, 0.05800],
		["kis_l1", 0.26100, 0.08700, 0.04700],
		["kis_l2", 0.11200, 0.08700, 0.45300],
		["kis_l3", 0.07700, 0.08700, 0.44600],
		["kis_l4", 0.11500, 0.10600, 0.43800],
		["kis_l5", 0.08100, 0.10600, 0.43100],
		["kis_l6", 0.32700, 0.12600, 0.05800],
		["kis_l7", 0.26100, 0.12600, 0.04700],
		["kis_l8", 0.11200, 0.12600, 0.45300],
		["kis_l9", 0.07700, 0.12600, 0.44600],
		{"group":""},
		
		//kickstand puller and pusher nodes
		{"group":"kickstand_support"},
		["frm_kis_pul", 0.15604, 0.67922, 0.45350{"nodeWeight":2.0}],
		["frm_kis_pus", -0.14100, 0.18161, 0.00000{"nodeWeight":1.0}],


		{"group":""},
		
	],
//--Beams--
	"beams":[
		["id1:", "id2:"],
		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

		//connection to frame
		{"beamSpring":70000,"beamDamp":50},
		{"beamDeform":10000,"beamStrength":"$=10000*$attachStrength"}, 
		{"breakGroup":"kickstand_holder"},
            ["kis_l4", "frm_l30"],
            ["kis_l5", "frm_l30"],
            ["kis_l4", "frm_l24"],
            ["kis_l5", "frm_l24"],
            ["kis_l4", "frm_l32"],
            ["kis_l5", "frm_l20"],
            ["kis_l4", "frm_r33"],
            ["kis_l4", "frm_r21"],
            ["kis_l5", "frm_r33"],
            ["kis_l5", "frm_r21"],
            ["kis_l4", "frm_l28"],
            ["kis_l5", "frm_l28"],



		//structure
		{"beamSpring":70000,"beamDamp":50},				
		{"beamDeform":15000,"beamStrength":"FLT_MAX"},
		{"breakGroup":"kickstand_structure"},		
		["kis_l7","kis_l1"],
		["kis_l1","kis_l3"],
		["kis_l3","kis_l9"],
		["kis_l9","kis_l7"],
		["kis_l6","kis_l7"],
		["kis_l9","kis_l8"],
		["kis_l8","kis_l6"],
		["kis_l0","kis_l6"],
		["kis_l8","kis_l2"],
		["kis_l2","kis_l0"],
		["kis_l1","kis_l0"],
		["kis_l2","kis_l3"],
		["kis_l9","kis_l5"],
		["kis_l8","kis_l4"],
		["kis_l5","kis_l4"],
		["kis_l2","kis_l4"],
		["kis_l3","kis_l4"],
		["kis_l9","kis_l4"],
		["kis_l3","kis_l5"],
		["kis_l2","kis_l5"],
		["kis_l8","kis_l5"],
		["kis_l3","kis_l8"],
		["kis_l9","kis_l2"],
		["kis_l7","kis_l2"],
		["kis_l2","kis_l6"],
		["kis_l1","kis_l2"],
		["kis_l3","kis_l7"],
		["kis_l3","kis_l6"],
		["kis_l3","kis_l0"],
		["kis_l1","kis_l9"],
		["kis_l9","kis_l0"],
		["kis_l9","kis_l6"],
		["kis_l7","kis_l8"],
		["kis_l1","kis_l8"],
		["kis_l0","kis_l8"],
		["kis_l0","kis_l4"],
		["kis_l6","kis_l4"],
		["kis_l7","kis_l4"],
		["kis_l1","kis_l4"],
		["kis_l7","kis_l5"],
		["kis_l6","kis_l5"],
		["kis_l0","kis_l5"],
		["kis_l1","kis_l5"],
		["kis_l7","kis_l0"],
		["kis_l1","kis_l6"],
		
		//kickstand puller
		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
		{"beamSpring":500000,"beamDamp":1000},
		{"beamDeform":10000,"beamStrength":"FLT_MAX"},
		{"breakGroup":"frame"},
		    ["frm_kis_pul", "frm_l36"],
            ["frm_kis_pul", "frm_l30"],
            ["frm_kis_pul", "frm_r37"],
            ["frm_kis_pul", "frm_l38"],
            ["frm_kis_pul", "frm_r39"],
            ["frm_kis_pul", "frm_l34"],
            ["frm_kis_pul", "frm_r35"],

		
		{"breakGroup":""},		
	],
	
	"hydros": [
			["id1:","id2:"],
			{"beamSpring":300000,"beamDamp":100},
			{"beamDeform":100000,"beamStrength":"FLT_MAX"},
			
			//kickstand retractor
			{"breakGroup":"kickstand_holder"},

/*			
			["kis_l1","frm_kis_pul",{"inputSource":"kickstand_retract","inLimit":0.2,"outLimit":1.0,"inRate":2,"outRate":2,"inputFactor":-1.0}], 
			["kis_l2","frm_kis_pul",{"inputSource":"kickstand_retract","inLimit":0.2,"outLimit":1.0,"inRate":2,"outRate":2,"inputFactor":-1.0}], 
			["kis_l3","frm_kis_pul",{"inputSource":"kickstand_retract","inLimit":0.2,"outLimit":1.0,"inRate":2,"outRate":2,"inputFactor":-1.0}], 
			["kis_l8","frm_kis_pul",{"inputSource":"kickstand_retract","inLimit":0.2,"outLimit":1.0,"inRate":2,"outRate":2,"inputFactor":-1.0}], 
			
			["kis_l1","frm_l16",{"inputSource":"kickstand_retract","inLimit":0.85,"outLimit":1.0,"inRate":0.4,"outRate":0.4,"inputFactor":-1.0}],	
			["kis_l2","frm_l16",{"inputSource":"kickstand_retract","inLimit":0.85,"outLimit":1.0,"inRate":0.4,"outRate":0.4,"inputFactor":-1.0}],	
			["kis_l3","frm_l16",{"inputSource":"kickstand_retract","inLimit":0.85,"outLimit":1.0,"inRate":0.4,"outRate":0.4,"inputFactor":-1.0}],	
			["kis_l8","frm_l16",{"inputSource":"kickstand_retract","inLimit":0.85,"outLimit":1.0,"inRate":0.4,"outRate":0.4,"inputFactor":-1.0}],

*/
            ["kis_l6", "frm_kis_pul"{"inputSource":"kickstand_retract","inLimit":0.17,"outLimit":1.0,"inRate":2,"outRate":2,"inputFactor":-1.0}],

            ["kis_l6", "frm_l28"{"inputSource":"kickstand_retract","inLimit":0.70,"outLimit":1.0,"inRate":0.4,"outRate":0.4,"inputFactor":-1.0}],
            //["kis_l0", "frm_l28"{"inputSource":"kickstand_retract","inLimit":0.75,"outLimit":1.0,"inRate":0.4,"outRate":0.4,"inputFactor":-1.0}],
            //["kis_l7", "frm_l28"{"inputSource":"kickstand_retract","inLimit":0.75,"outLimit":1.0,"inRate":0.4,"outRate":0.4,"inputFactor":-1.0}],
            //["kis_l1", "frm_l28"{"inputSource":"kickstand_retract","inLimit":0.75,"outLimit":1.0,"inRate":0.4,"outRate":0.4,"inputFactor":-1.0}],



			//frame pusher
			{"breakGroup":"frame"},
/*			
			["frm_r19","frm_kis_pus",{"inputSource":"kickstand_retract","inLimit":0.1,"outLimit":1.0,"inRate":4,"outRate":2,"inputFactor":-1.0}], 
			["frm_l18","frm_kis_pus",{"inputSource":"kickstand_retract","inLimit":0.85,"outLimit":1.0,"inRate":1,"outRate":2,"inputFactor":-1.0}], 
			["frm_r15","frm_kis_pus",{"inputSource":"kickstand_retract","inLimit":0.95,"outLimit":1.0,"inRate":1,"outRate":2,"inputFactor":-1.0}], 						
*/	
            ["frm_kis_pus", "frm_l30"{"inputSource":"kickstand_retract","inLimit":0.40,"outLimit":1.0,"inRate":2,"outRate":2,"inputFactor":-1.0}],
            ["frm_kis_pus", "frm_r31"{"inputSource":"kickstand_retract","inLimit":0.01,"outLimit":1.0,"inRate":4,"outRate":2,"inputFactor":-1.0}],
            ["frm_kis_pus", "frm_r17"{"inputSource":"kickstand_retract","inLimit":0.70,"outLimit":1.0,"inRate":1.5,"outRate":2,"inputFactor":-1.0}],
		

			{"breakGroup":""},

	],
	
//--Collision Triangles--
	"triangles":[
		["id1:", "id2:", "id3:"],
		["kis_l3","kis_l7","kis_l1"],
		["kis_l7","kis_l8","kis_l6"],
		["kis_l8","kis_l0","kis_l6"],
		["kis_l2","kis_l1","kis_l0"],
		["kis_l6","kis_l1","kis_l7"],
		["kis_l9","kis_l2","kis_l8"],
		["kis_l3","kis_l9","kis_l7"],
		["kis_l7","kis_l9","kis_l8"],
		["kis_l8","kis_l2","kis_l0"],
		["kis_l2","kis_l3","kis_l1"],
		["kis_l6","kis_l0","kis_l1"],
		["kis_l9","kis_l3","kis_l2"],
	],
},

"rear_support":{
	"information":{
		"authors":"TonyCartony",
		"name":"Rear Support",
	},
	"slotType":"frame_supports_temp",
	 
//--Nodes--
	"nodes":[
		["id", "posX", "posY", "posZ"],
		{"selfCollision":true}
		{"frictionCoef":0.3},
		{"nodeMaterial":"|NM_METAL"},
		{"nodeWeight":2.5},
		{"group":"rear_swing_arm"},
		{"collision":true}		

		["arm_l_b0", 0.38300, 0.87100, 0.00000{"nodeWeight":1.2}],
		["arm_r_b0", -0.38300, 0.87100, 0.00000{"nodeWeight":1.2}],

		["arm_l_b1", 0.38300, 0.67100, 0.00000{"nodeWeight":1.2}],
		["arm_r_b1", -0.38300, 0.67100, 0.00000{"nodeWeight":1.2}],
		
		{"group":""},
	],
//--Beams--
	"beams":[
		["id1:", "id2:"],
		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
	
	
		//strucuture
		{"beamSpring":2101000,"beamDamp":100},
		{"beamDeform":201000,"beamStrength":"FLT_MAX"},
		{"breakGroup":"rear_swing_arm_struct"},
		
		//temp base
		{"highlight":{"radius":0.0027, "col":"#ff0000ff" }},
		["arm_l_b0", "arm_r_b0"],
		["arm_l_b0", "arm_l_b1"],
		["arm_l_b0", "arm_r_b1"],
		
		["arm_r_b0", "arm_l_b1"],
		["arm_r_b0", "arm_r_b1"],

		["arm_r_b1", "arm_l_b1"],
		
		["arm_r_b1", "arm_l8"],		
		["arm_r_b1", "arm_r9"],		
		["arm_r_b0", "arm_l8"],		
		["arm_r_b0", "arm_r9"],		
		
		["arm_l_b1", "arm_l8"],		
		["arm_l_b1", "arm_r9"],		
		["arm_l_b0", "arm_l8"],		
		["arm_l_b0", "arm_r9"],		
		
		["arm_r_b1", "arm_l2"],		
		["arm_l_b1", "arm_r3"],		
		{"highlight":""},
	],
},

}