{

"rear_swing_arm":{
	"information":{
		"authors":"TonyCartony",
		"name":"Rear Swing Arm",
	},
	"slotType":"rear_swing_arm",
	
	"flexbodies": [
		["mesh", "[group]:", "nonFlexMaterials"],
		["rear_fork", ["rear_swing_arm"]],
		["chain", ["rear_swing_arm"]],
		["rear_axle", ["wheel_R"]],
		["rear_brake_disc", ["wheel_R"]],
		["rear_sproke", ["wheel_R"]],			
		["rear_rim", ["wheel_R"]],						
	 ],
	 
	 
	"slots": [
		["type", "default", "description"]
		["rear_ammo", "rear_ammo", "Rear Ammo"],						
		["rear_tire", "rear_tire_dirt", "Rear Tire"],						
		["frame_supports_temp", "frame_supports_temp", "frame_supports_temp"],						
		
	],

    "thrusters": [
        ["id1:", "id2:", "factor", "thrustLimit", "control"],

		//0kmh speed stabilizer
		["arm_r5", "arm_r05", 20, 20, "downPressure"],
        ["arm_l4", "arm_l04", 20, 20, "downPressure"],		

		//down pressure
		["arm_r03", "arm_r05", 1800, 1800, "downPressure"],
        ["arm_l02", "arm_l04", 1800, 18000, "downPressure"],

	],	
	 
	 
//--Nodes--
	"nodes":[
		["id", "posX", "posY", "posZ"],
		{"selfCollision":false}
		{"frictionCoef":0.3},
		{"nodeMaterial":"|NM_METAL"},
		{"nodeWeight":2.5},
		{"group":"rear_swing_arm"},
		{"collision":true}		
		
		//arm attach
		["arm_l0", 0.12300, 0.12500, 0.56400{"nodeWeight":3.0}],
		["arm_r1", -0.11700, 0.12500, 0.56400{"nodeWeight":3.0}],
		
		//shock attach
		["arm_l2", 0.12300, 0.28800, 0.41300],
		["arm_r3", -0.11700, 0.28800, 0.41300],

		//center stiffner
		["arm_l02", 0.12300, 0.53800, 0.45299],
		["arm_r03", -0.11700, 0.53800, 0.45299],

		
		//no autocollision
		["arm_l4", 0.12300, 0.39600, 0.55300{"selfCollision":false}],
		["arm_r5", -0.11700, 0.39600, 0.55300{"selfCollision":false}],
		
		//downpressure
		["arm_l04", 0.12300, 0.53800, 0.55300{"selfCollision":false}],
		["arm_r05", -0.11700, 0.53800, 0.55300{"selfCollision":false}],

		
		["arm_l6", 0.12300, 0.66700, 0.26200],
		["arm_r7", -0.11700, 0.69600, 0.51200],
		["arm_l8", 0.12300, 0.77100, 0.36600],
		["arm_r9", -0.11700, 0.77100, 0.36600],
		
		
		{"selfCollision":true}
		{"collision":true}
		{"nodeWeight":5.0},
		{"nodeMaterial":"|NM_METAL"},
		{"chemEnergy":200,"burnRate":0.5,"flashPoint":300,"smokePoint":200,"selfIgnition":0,"specHeat":1},
		{"frictionCoef":0.5},
		{"group":"rear_axle"},
		["rax_axl_l", 0.12300, 0.73800, 0.37300],
		["rax_axl_r", -0.11700, 0.73800, 0.37300],
		{"chemEnergy":false,"burnRate":false,"flashPoint":false,"smokePoint":false,"selfIgnition":false,"specHeat":false},
		
		
		{"group":""},
	],
//--Beams--
	"beams":[
		["id1:", "id2:"],
		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
		
		//axle
		{"beamSpring":1901000,"beamDamp":100},
		{"beamDeform":201000,"beamStrength":"FLT_MAX"},
		{"breakGroup":"rear_axle"},
		["rax_axl_l","rax_axl_r",{"name":"axle_R"}],
		{"breakGroup":""},	
		
		
		//axle attach
		{"beamSpring":1901000,"beamDamp":100},
		{"beamDeform":201000,"beamStrength":"$=18000*$attachStrength"}, 
		{"breakGroup":"rear_axle_holder"},
		["arm_r03","rax_axl_r"],
		["arm_r03","rax_axl_l"],
		["arm_l02","rax_axl_r"],
		["arm_l02","rax_axl_l"],
		["arm_r7","rax_axl_r"],
		["rax_axl_r","arm_l8"],
		["arm_r1","rax_axl_r"],
		["arm_r5","rax_axl_r"],

		["arm_l0","rax_axl_r"],
		["rax_axl_r","arm_l4"],
		["rax_axl_r","arm_l6"],
		["rax_axl_r","arm_l2"],
		["rax_axl_r","arm_r3"],
		["rax_axl_r","arm_r9"],
		
		["arm_r1","rax_axl_l"],
		["arm_l6","rax_axl_l"],
		["rax_axl_l","arm_r9"],
		["arm_r5","rax_axl_l"],
		["arm_r7","rax_axl_l"],
		["rax_axl_l","arm_l0"],
		["rax_axl_l","arm_l4"],

		["rax_axl_l","arm_l2"],
		["rax_axl_l","arm_r3"],
		["rax_axl_l","arm_l8"],
		
		//attach to frame
		{"beamSpring":1901000,"beamDamp":100},
		{"beamDeform":201000,"beamStrength":"$=15000*$attachStrength"}, 
		{"breakGroup":"rear_swing_arm_attach"},
		
		["arm_l0", "frm_l30"],
		["arm_l0", "frm_r31"],
		["arm_l0", "frm_l24"],
		["arm_l0", "frm_r25"],		
		["arm_l0", "frm_l32"],
		["arm_l0", "frm_r33"],
		["arm_l0", "frm_l20"],
		["arm_l0", "frm_r21"],

		["arm_r1", "frm_l30"],
		["arm_r1", "frm_r31"],
		["arm_r1", "frm_l24"],
		["arm_r1", "frm_r25"],		
		["arm_r1", "frm_l32"],
		["arm_r1", "frm_r33"],
		["arm_r1", "frm_l20"],
		["arm_r1", "frm_r21"],
		
		
		//strucuture
		{"beamSpring":2101000,"beamDamp":100},
		{"beamDeform":201000,"beamStrength":"FLT_MAX"},
		{"breakGroup":"rear_swing_arm_struct"},

            ["arm_l04", "arm_r05"],
            ["arm_l04", "arm_l02"],
            ["arm_l04", "arm_r03"],
            ["arm_r05", "arm_r03"],
            ["arm_r05", "arm_l02"],
            ["arm_l04", "arm_l4"],
            ["arm_l04", "arm_r5"],
            ["arm_r05", "arm_l4"],
            ["arm_r05", "arm_r5"],
            ["arm_r05", "arm_r7"],
            ["arm_l04", "arm_r7"],
            ["arm_l04", "arm_l6"],
            ["arm_r05", "arm_l6"],
            ["arm_l04", "arm_l8"],
            ["arm_l04", "arm_r9"],
            ["arm_r05", "arm_l8"],
            ["arm_r05", "arm_r9"],
            ["arm_l04", "arm_l2"],
            ["arm_l04", "arm_r3"],
            ["arm_r05", "arm_l2"],
            ["arm_r05", "arm_r3"],


		["arm_r03","arm_l02"],	
	
		["arm_r03","arm_r5"],
		["arm_r03","arm_r1"],
		["arm_r03","arm_r7"],
		["arm_r03","arm_r9"],
		["arm_r03","arm_r3"],

		["arm_l02","arm_l0"],
		["arm_l02","arm_l4"],
		["arm_l02","arm_l2"],
		["arm_l02","arm_l8"],
		["arm_l02","arm_l6"],


		["arm_r03","arm_l0"],
		["arm_r03","arm_l4"],
		["arm_r03","arm_l2"],
		["arm_r03","arm_l8"],
		["arm_r03","arm_l6"],

		["arm_l02","arm_r5"],
		["arm_l02","arm_r1"],
		["arm_l02","arm_r7"],
		["arm_l02","arm_r9"],
		["arm_l02","arm_r3"],



		["arm_r1","arm_r5"],
		["arm_r1","arm_r9"],
		["arm_r5","arm_r7"],
		["arm_r1","arm_l0"],
		["arm_l4","arm_l0"],
		["arm_l6","arm_r9"],
		["arm_r7","arm_l8"],
		["arm_l2","arm_l6"],
		["arm_r3","arm_r1"],
		["arm_r1","arm_r7"],
		["arm_r5","arm_r9"],
		["arm_r1","arm_l4"],
		["arm_r5","arm_l0"],
		["arm_r1","arm_l6"],
		["arm_r7","arm_r9"],
		["arm_l4","arm_r5"],
		["arm_r1","arm_l8"],
		["arm_r9","arm_l0"],
		["arm_r5","arm_l6"],
		["arm_r1","arm_l2"],
		["arm_r9","arm_l4"],
		["arm_r5","arm_l8"],
		["arm_r7","arm_l0"],
		["arm_r5","arm_l2"],
		["arm_r9","arm_l8"],
		["arm_r5","arm_r3"],
		["arm_r7","arm_l6"],
		["arm_r9","arm_l2"],
		["arm_r9","arm_r3"],
		["arm_l0","arm_l6"],
		["arm_r7","arm_l2"],
		["arm_l0","arm_l8"],
		["arm_r7","arm_r3"],
		["arm_l4","arm_l6"],
		["arm_l0","arm_l2"],
		["arm_l8","arm_l4"],
		["arm_l0","arm_r3"],
		["arm_l4","arm_l2"],
		["arm_l8","arm_l6"],
		["arm_l4","arm_r3"],
		["arm_l8","arm_l2"],
		["arm_l8","arm_r3"],
		["arm_l2","arm_r3"],
		{"breakGroup":""},		
	],



	
	"variables": [
			["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
			["$tire_R_PSI", "range", "psi", "Tires", 15, 1, 150, "Rear Tire Pressure", "Rear tire pressure"{"stepDis":1.0}]
			["$tire_R_grip", "range", "grip", "Tires", 5, 0, 50, "Rear Tire Compound", "Represents tire type, higher is softer/more grip"{"stepDis":0.5}]
			["$braketorque_R", "range", "Nm", "Brakes", 700, 0, 4000, "Rear Brake Torque", "Strength of the rear brakes"{"stepDis":100}]
	],
		
		

	
	
//--Collision Triangles--
	"triangles":[
		["id1:", "id2:", "id3:"],
	],
},


"rear_tire_street":{
		"information":{
			"name":"Street Tire",
			"authors":"TonyCartony"
			"value":200,
		},
			
		"slotType":"rear_tire",
	
		"slots": [
			["type", "default", "description"]
			["rt_structure", "rt_structure", "Tire Body"],				
		],
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["rear_tire_street", ["tire_R","wheel_R"]],						
		],

		"pressureWheels": [
			["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],

			
			//measures
			{"numRays":16},
			{"radius":0.34},
			{"tireWidth":0.12},

		],		

},




"rear_tire_dirt":{
		"information":{
			"name":"Dirt Tire",
			"authors":"TonyCartony"
			"value":200,
		},
			
		"slotType":"rear_tire",
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["rear_tire_dirt", ["tire_R","wheel_R"]],						
		],
		
		"slots": [
			["type", "default", "description"]
			["rt_structure", "rt_structure", "Tire Body"],				
		],

		"pressureWheels": [
			["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],

			
			//measures
			{"numRays":16},
			{"radius":0.36},
			{"tireWidth":0.15},

		],	
		
},
		


"rt_structure":{
		"information":{
			"name":"Tire Body",
			"authors":"TonyCartony"
			"value":200,
		},
			
		"slotType":"rt_structure",

		
	"pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        {"disableMeshBreaking":false,"disableHubMeshBreaking":false},
        {"hasTire":true},
        {"enableTireReinfBeams":false},
        {"enableTireLbeams":true},
        {"enableTireSideReinfBeams":false},
        {"enableTreadReinfBeams":true},
        {"enableTirePeripheryReinfBeams":true},

		
		//measures
		{"hubRadius":0.25},
		{"wheelOffset":0.0},
		{"hubWidth":0.20},
	
		//brake settings
		{"ABSthreshold":1.8}
		{"brakeTorque":"$braketorque_R"},
		{"enableABS":false},
		{"brakeInputSplit":0.5},
		{"brakeSplitCoef":0.5},
		{"parkingTorque":1000},
		{"brakeSpring":30},
		
		//brake thermals
		{"enableBrakeThermals":true},
		{"brakeDiameter":0.305},
		{"brakeMass":6.5},
		{"brakeType":"vented-disc"},
		{"rotorMaterial":"steel"},
		{"brakeVentingCoef":0.9},	
		
		

        //hub options
        {"hubTreadBeamSpring":1001000, "hubTreadBeamDamp":10},
        {"hubPeripheryBeamSpring":1001000, "hubPeripheryBeamDamp":10},
        {"hubSideBeamSpring":1601000, "hubSideBeamDamp":10},
        {"hubNodeWeight":0.48},
        {"hubNodeMaterial":"|NM_METAL"},
        {"hubFrictionCoef":0.5},
        {"hubBeamDeform":43600, "hubBeamStrength":78000},		
		
		

        //tire options
        {"wheelSideBeamSpring":"$=$tire_R_PSI*833","wheelSideBeamDamp":25},
        {"wheelSideBeamSpringExpansion":561000,"wheelSideBeamDampExpansion":55},
        {"wheelSideTransitionZone":0.12,"wheelSideBeamPrecompression":0.985},

        {"wheelReinfBeamSpring":55000,"wheelReinfBeamDamp":215},
        {"wheelReinfBeamDampCutoffHz":500,"wheelReinfBeamPrecompression":0.98},

        {"wheelTreadBeamSpring":241000,"wheelTreadBeamDamp":115},
        {"wheelTreadBeamDampCutoffHz":500,"wheelTreadBeamPrecompression":0.98},

        {"wheelTreadReinfBeamSpring":241000,"wheelTreadReinfBeamDamp":85},
        {"wheelTreadReinfBeamDampCutoffHz":500,"wheelTreadReinfBeamPrecompression":0.98},

        {"wheelPeripheryBeamSpring":141000,"wheelPeripheryBeamDamp":45},
        {"wheelPeripheryBeamDampCutoffHz":500,"wheelPeripheryBeamPrecompression":0.98},

        {"wheelPeripheryReinfBeamSpring":141000,"wheelPeripheryReinfBeamDamp":45},
        {"wheelPeripheryReinfBeamDampCutoffHz":500,"wheelPeripheryReinfBeamPrecompression":0.98},

        //general tire values
        {"nodeWeight":0.21},
        {"nodeMaterial":"|NM_RUBBER"},
        {"triangleCollision":false},
        {"pressurePSI":"$tire_R_PSI"},
        {"dragCoef":5},

        //groundmodel friction multipliers
        {"frictionCoef":"$tire_R_grip"},
        {"slidingFrictionCoef":1.0},
        {"stribeckExponent":2},
        {"treadCoef":0},

        //advanced friction values
        {"noLoadCoef":2.09},
        {"loadSensitivitySlope":0.000185},
        {"fullLoadCoef":0.5},
        {"softnessCoef":0.8},

        //deform values
        {"wheelSideBeamDeform":17000,"wheelSideBeamStrength":182000},
        {"wheelTreadBeamDeform":13000,"wheelTreadBeamStrength":187000},
        {"wheelPeripheryBeamDeform":55000,"wheelPeripheryBeamStrength":185000},

        {"selfCollision":false},
        {"collision":true},
        {"axleBeams":["axle_FR"]},
		["RR", "wheel_R", "tire_R", "rax_axl_r", "rax_axl_l", 9999,  "back", 1], //, {"speedo":true, "nodeCoupling:":"rax_brakecen"}],		

		//clean-up
        {"axleBeams":[]},{"disableMeshBreaking":false,"disableTriangleBreaking":false},
        {"selfCollision":true},
        {"enableABS":false},
        {"hubcapBreakGroup":""},
        {"hubcapGroup":""},
        {"enableHubcaps":false},
        {"enableTireLbeams":false},
        {"enableTireSideReinfBeams":false},
        {"enableTireReinfBeams":false},
        {"enableTreadReinfBeams":false},
        {"enableTirePeripheryReinfBeams":false},
        {"loadSensitivitySlope":""},
        {"noLoadCoef":""},
        {"fullLoadCoef":""},
        {"frictionCoef":""},
        {"slidingFrictionCoef":""},
        {"softnessCoef":0.5},
        {"treadCoef":1.0},
		{"brakeTorque":0},
		{"parkingTorque":0},
		{"enableBrakeThermals":false},
		{"brakeDiameter":false},
		{"brakeMass":false},
		{"brakeType":false},
		{"rotorMaterial":false},
		{"brakeVentingCoef":false},		
    ],		

},


}