{
	"r6_dragrsuspension":{
		"information":{
			"name":"Drag Swing Arm",
			"authors":"CRGZ"
			"value":1000,
		},
		"slotType":"r6_rsuspension",
		
		"slots": [
			["type", "default", "description"]
			["brake_R","brake_R", "Rear Brake"],
			["dragrear_wheel","dragrear_wheel", "Drag Rear Wheel"],
			["drear_spring","drear_spring", "Drag Rear Spring"],
			["r6_wheeliebar","r6_wheeliebar", "Wheelie Bar"],
		//	["Reardamp","Reardamp", "Rear Damper"],
		],
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["r6_rear_dragswingarm", ["dragswingarm_jbeam"]],
			["r6_dragchain", ["dragswingarm_jbeam"]],
	
			
		],
		
		"nodes":[
			["id", "posX", "posY", "posZ"],
			{"selfCollision":false}
			{"collision":true}
			{"frictionCoef":0.7},
			{"nodeMaterial":"|NM_METAL"},
			{"nodeWeight":2.5},
			{"group":"dragswingarm_jbeam"},
			
			
			["dsal0",0.177,1.291,0.462],
			["dsar1",-0.177,1.291,0.462],
			["dsal2",0.083,1.665,0.409{"group":["shock","dragswingarm_jbeam"]}],
			["dsal3",0.083,1.665,0.623564],
			["dsa4",0.0,1.665,0.409{"group":["shock","dragswingarm_jbeam"]}],
			["dsa5",0.0,1.665,0.623564],
			["dsar6",-0.083,1.665,0.409],
			["dsar7",-0.083,1.665,0.623564],
			["dsal8",0.161,2.185,0.325],
			["dsar9",-0.161,2.185,0.325],
			
		],

		"beams":[
			["id1:", "id2:"],
			{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
			{"beamSpring":1300000,"beamDamp":100},
			{"beamDeform":100000,"beamStrength":"FLT_MAX"},
			
			["dsal8","dsal0"],
			["dsal3","dsal8"],
			["dsal3","dsal0"],
			["dsa5","dsal3"],
			["dsa5","dsal2"],
			["dsar9","dsar6"],
			["dsar9","dsar1"],
			["dsar7","dsar9"],
			["dsar7","dsar1"],
			["dsa5","dsar7"],
			["dsal3","dsal2"],
			["dsar9","dsal8"],
			["dsar9","dsa4"],
			["dsal8","dsa4"],
			["dsal3","dsa4"],
			["dsar7","dsa4"],
			["dsar7","dsar6"],
			["dsal3","dsar6"],
			["dsa5","dsal8"],
			["dsa5","dsar9"],
			["dsar1","dsal8"],
			["dsar9","dsal0"],
			["dsar1","dsar6"],
			["dsal0","dsar6"],
			["dsar9","dsal3"],
			["dsar7","dsal8"],
			["dsar1","dsa4"],
			["dsal0","dsa4"],
			["dsar1","dsal2"],
			["dsal0","dsal2"],
			["dsar1","dsal0"],
			["dsa5","dsa4"],
			["dsar7","dsal2"],
			["dsa4","dsal2"],
			["dsa4","dsar6"],
			["dsal8","dsal2"],
			["dsar9","dsal2"],
			["dsal8","dsar6"],
			
			//wheel break off
			
			{"beamSpring":1300000,"beamDamp":100},
			{"beamDeform":15000,"beamStrength":32000},
			
			
			
			{"breakGroup":"wheelR"},
			{"disableMeshBreaking":true}
			{"breakGroup":""},
			
		//Swingarm to chassis
			
			{"beamSpring":4000000,"beamDamp":100},
			{"beamDeform":"FLT_MAX","beamStrength":"FLT_MAX"},
			
			["dsal0","fcl39"],
		//	["dsal0","fcr41"],
			["dsal0","tc7"],
			["dsal0","fcr32"],
			["dsal0","fcl31"],
			["dsal0","tcr9"],
			["dsal0","tcl8"],
			["dsal0","fcl36"],
			["dsal0","fcr38"],
			["dsal0","fcc36"],
			
			["dsar1","fcl39"],
		//	["dsar1","fcr41"],
			["dsar1","tc7"],
			["dsar1","fcr32"],
			["dsar1","fcl31"],
			["dsar1","tcr9"],
			["dsar1","tcl8"],
			["dsar1","fcl36"],
			["dsar1","fcr38"],
			["dsar1","fcc36"],
			
			
			{"beamSpring":250000,"beamDamp":1000},
			{"beamDeform":"FLT_MAX","beamStrength":"FLT_MAX"},
			
		//	["sac6","fcl39"],
		//	["sac6","fcr41"],
			["dsa5","tc7"],
			
			{"breakGroup":""},

		],
		
		"pressureWheels":[
			["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
			{"propulsed":1},
		],
		
		"triangles":[
			["id1:", "id2:", "id3:"],
			["dsa5", "dsar1", "dsal0"], //CENTER
			["dsar7", "dsar1", "dsa5"], //RIGHT 
			["dsa5", "dsal0", "dsal3"], //LEFT
			
			["dsar7", "dsar9", "dsar1"],
			["dsal3", "dsal0", "dsal8"],
		],
		
			
			

	}
	
	"dragrear_wheel": {
		"information":{
			"authors":"CRGZ",
			"name":"Drag Rear Wheel",
			"value":380,
		},
		"slotType" : "dragrear_wheel",
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["r6_rear_dragtire", ["dwheel_RR","dtire_RR"], [], {"pos":{"x":0.0, "y":-0.00, "z":-0.0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
			["r6_rear_dragsprocket", ["dwheel_RR","dtire_RR"]],
			
			//rear wheels
			
			["r6_rear_dragrim", ["dwheel_RR","dwheelhub_RR"], [], {"pos":{"x":0.0, "y":-0.00, "z":-0.0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
			["r6_rear_dragbrake_rotor",  ["dwheel_RR","dwheelhub_RR"], [], {"pos":{"x":0.0, "y":-0.00, "z":-0.0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
		],
		
		"variables": [
			["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
			["$tire_R", "range", "psi", "Tires", 35, 28, 40, "Rear Tire Pressure", "Rear tire pressure"]
			["$tire_RT", "range", "grip", "Tires", 6.5, 1.4, 10.0, "Rear Tire Compound", "Represents tire type, higher is softer/more grip"{"stepDis":0.1}]
		],
		
		"pressureWheels":[
			["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
			{"enableTireReinfBeams":true},{"disableMeshBreaking":false,"disableHubMeshBreaking":false},
            {"enableTireSideReinfBeams":true},
			
			//general settings
			{"hubRadius":0.225},
			{"wheelOffset":0},
			{"hubWidth":0.10},
			{"numRays":20},
			{"radius":0.305},
			{"tireWidth":0.1},

			{"hubTreadBeamSpring":751000, "hubTreadBeamDamp":4},
            {"hubPeripheryBeamSpring":751000, "hubPeripheryBeamDamp":4},
            {"hubSideBeamSpring":751000, "hubSideBeamDamp":4},
			{"hubBeamDeform":116000}
            {"hubNodeWeight":0.3},
            {"hubNodeMaterial":"|NM_METAL"},
            {"hubFrictionCoef":0.5},

            //tire options
            {"wheelSideBeamSpring":5000,"wheelSideBeamDamp":10},
            {"wheelSideBeamSpringExpansion":260000,"wheelSideBeamDampExpansion":20},
            {"wheelSideTransitionZone":0.1,"wheelSideBeamPrecompression":0.98},

            {"wheelReinfBeamSpring":27000,"wheelReinfBeamDamp":20},
            {"wheelReinfBeamSpringExpansion":27000,"wheelReinfBeamDampExpansion":20},
            {"wheelReinfTransitionZone":0.0,"wheelReinfBeamPrecompression":0.96},

            {"wheelTreadBeamSpring":201000,"wheelTreadBeamDamp":25},
            {"wheelTreadBeamPrecompression":0.97},

            {"wheelPeripheryBeamSpring":301000,"wheelPeripheryBeamDamp":15},
            {"wheelPeripheryBeamPrecompression":0.98},

            //general tire values
            {"nodeWeight":0.15},
            {"nodeMaterial":"|NM_RUBBER"},
            {"triangleCollision":true},
            {"pressurePSI":"$tire_R"},
            {"maxPressurePSI":4200},
            {"dragCoef":10},
			
			//groundmodel friction multipliers
			{"frictionCoef":"$tire_RT"},
			{"slidingFrictionCoef":1.4},
			{"treadCoef":0},

			//advanced friction values
			{"noLoadCoef":1.46},
			{"loadSensitivitySlope":0.00021}
			{"fullLoadCoef":0.6},
			{"softnessCoef":1},
			
            //deform values
            {"wheelSideBeamDeform":9600,"wheelSideBeamStrength":14000},
            {"wheelReinfBeamDeform":9600,"wheelReinfBeamStrength":14000},
            {"wheelTreadBeamDeform":9500,"wheelTreadBeamStrength":14000},
            {"wheelPeripheryBeamDeform":9500,"wheelPeripheryBeamStrength":14000},
            {"wheelSideReinfBeamDeform":9600,"wheelSideReinfBeamStrength":14000},
            {"hubBeamDeform":114040, "hubBeamStrength":288740},

			//front
			{"selfCollision":false},
			{"collision":true},
			{"hubcapBreakGroup":"hubcap_RR"},
			{"hubcapGroup":"hubcap_RR"},
			{"axleBeams":["axle_RR"]},
			["RR", "dwheel_RR", "dtire_RR", "dsar9", "dsal8", 9999,  "dsa4", 1,{"speedo":true, "nodeCoupling:":"brakecen"}],
			{"selfCollision":false},
			{"axleBeams":[]},{"disableMeshBreaking":false,"disableTriangleBreaking":false},
			{"hubcapBreakGroup":""},
			{"hubcapGroup":""},
			{"enableHubcaps":false},
			{"propulsed":0},
		],
	},
	
	"brake_R": {
		"information":{
			"authors":"BeamNG",
			"name":"Rear Brakes",
			"value":140,
		},
		"slotType" : "brake_R",
		
		"slots": [
			["type", "default", "description"]
			["brakepad_R","brakepad_R_race", "Rear Brake Pads"{"coreSlot":true}],
		],
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["r6_rear_brake", ["dragswingarm_jbeam"]],
			
		],
		
		"variables": [
			["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
			["$braketorque_R", "range", "Nm", "Brakes", 1000, 0, 5000, "Rear Brake Torque", "Strength of the front brakes"{"stepDis":100}]
		],
		
		"pressureWheels":[
			["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
			//brakes
			//{"ABSthreshold":0.8}
			{"brakeTorque":"$braketorque_R"},
		//	{"enableABS":true},
			{"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},
		],
	},
	
	"drear_spring":{
		"information":{
			"name":"Drag Rear Spring",
			"authors":"CRGZ"
			"value":200,
		},
		"slotType":"drear_spring",
		
		"variables": [
			["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
			["$6rdamp", "range", "N/m/s", "Rear Suspension", 104000, 5000, 940000, "Rear Spring Stiffness", "Spring Stiffness"{"stepDis":1000}]
			["$damp_bump_R6", "range", "N/m/s", "Rear Suspension", 4000, 500, 10000, "Rear Bump Damping", "Damper rate in slow compression"{"stepDis":100}]
			["$damp_bump_R6_fast", "range", "N/m/s", "Rear Suspension", 9000, 500, 15000, "Rear Fast Bump Damping", "Damper rate in fast compression"{"stepDis":100}]
			["$damp_rebound_R6", "range", "N/m/s", "Rear Suspension", 4000, 500, 10000, "Rear Rebound Damping", "Damper rate in extension"{"stepDis":100}]
		],
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["r6_rear_shock", ["shock"]],
	
		],
		
		"beams":[
			["id1:", "id2:"],
			{"breakGroupType":0},
			//{"optional":true},
			
			
			//springs
			{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
			{"beamDeform":"FLT_MAX","beamStrength":"FLT_MAX"},
			{"beamSpring":"$6rdamp","beamDamp":"50"},
			{"beamPrecompression":"1.11"},
		
			["dsal2","fcl39",{"beamDampRebound":"$damp_rebound_R6","beamDampFast":"$damp_bump_R6_fast","beamDampReboundFast":"$damp_rebound_R6","soundFile":"vehicles/YamahaR6/sounds/spring_compress3.ogg","volumeFactor":0.4,"decayMode":0,"decayFactor":1.5,"pitchFactor":1,"maxStress":4000}],
			["dsar6","fcr41",{"beamDampRebound":"$damp_rebound_R6","beamDampFast":"$damp_bump_R6_fast","beamDampReboundFast":"$damp_rebound_R6","soundFile":"vehicles/YamahaR6/sounds/spring_compress3.ogg","volumeFactor":0.6,"decayMode":0,"decayFactor":1.5,"pitchFactor":0.5,"maxStress":4000}],
			
			{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
			{"deformGroup":""}
		],
		
	}
	
}