{
"rear_ammo":{
	"information":{
		"authors":"TonyCartony",
		"name":"Rear Shock Absorber",
	},
	"slotType":"rear_ammo",
	
    "flexbodies":[
        ["mesh", "[group]:", "nonFlexMaterials"],
		["rear_ammo_low", ["rear_ammo"]],		
		["rear_ammo_up", ["rear_ammo"]],		
		["rear_spring", ["rear_ammo"]],		
		
		
    ],
	
	//--Nodes--
	"nodes":[
		["id", "posX", "posY", "posZ"],
		{"selfCollision":true}
		{"frictionCoef":0.3},
		{"nodeMaterial":"|NM_METAL"},
		{"nodeWeight":0.8},
		{"group":"rear_ammo"},
		{"collision":true}		
		
		["r_amm_l0", 0.03000, 0.34600, 0.52978],
		["r_amm_r0", -0.03000, 0.34600, 0.52978],
		["r_amm_0", 0.00000, 0.26967, 0.50000],
		
	],
	
	
	
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$springheight_R", "range", "+m", "Suspension", 0.0, -0.15, 0.10, "Spring Height", "Raise or lower the suspension height", {"stepDis":0.05, "subCategory":"Rear"}],
        ["$spring_R", "range", "N/m", "Suspension", 25000, 1, 100000, "Spring Rate", "Spring stiffness", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_bump_R", "range", "N/m/s", "Suspension", 1000, 100, 10000, "Bump Damping", "Damper rate in compression", {"stepDis":100, "subCategory":"Rear"}],
        ["$damp_rebound_R", "range", "N/m/s", "Suspension", 1300, 100, 10000, "Rebound Damping", "Damper rate in extension", {"stepDis":100, "subCategory":"Rear"}],
    ],
    "beams": [
        ["id1:", "id2:"],
		 
		//ammo beams
  		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
		{"beamDeform":10000,"beamStrength":"FLT_MAX"},
		{"breakGroup":"rear_ammo"},
		
		//base
		{"beamSpring":1000000,"beamDamp":200},
		["r_amm_l0", "r_amm_r0"],
		["r_amm_l0", "r_amm_0"],
		["r_amm_0", "r_amm_r0"],
		
		
		//to frame
		{"beamSpring":10,"beamDamp":200},
		["r_amm_l0", "frm_l28"],
		["r_amm_l0", "frm_r29"],

		["r_amm_r0", "frm_l28"],
		["r_amm_r0", "frm_r29"],

		["r_amm_0", "frm_l28"],
		["r_amm_0", "frm_r29"],

		
		
		
		//to swing arm
		{"beamSpring":1000000,"beamDamp":200},		
		{"breakGroup":"rear_swing_arm_attach"},		  
		["r_amm_l0", "arm_l2"],
		["r_amm_r0", "arm_l2"],
		["r_amm_0", "arm_l2"],
		
		["r_amm_l0", "arm_r3"],
		["r_amm_r0", "arm_r3"],
		["r_amm_0", "arm_r3"],
		
		["r_amm_l0", "arm_r5"],
		["r_amm_r0", "arm_r5"],
		["r_amm_0", "arm_r5"],
		
		["r_amm_l0", "arm_l4"],
		["r_amm_r0", "arm_l4"],
		["r_amm_0", "arm_l4"],
		
		
		

		
		//springs - no soft bumpstop - advanced dampers
		{"breakGroup":"rear_swing_arm_attach"},
		{"beamType":"|NORMAL"},
		{"beamDeform":12000,"beamStrength":140000},
		{"beamSpring":"$spring_R","beamDamp":0},
		["arm_l8","frm_l34", {"precompressionRange":"$=$springheight_R + 0.015"}],
		["arm_r9","frm_r35", {"precompressionRange":"$=$springheight_R + 0.015"}],

		//Rear dampers
		{"beamPrecompression":1.0, "beamType":"|BOUNDED", "beamLongBound":1.0 "beamShortBound":1.0},
		{"beamLimitSpring":0,"beamLimitDamp":0},
		{"beamSpring":0,"beamDamp":"$damp_bump_R"},
		["arm_l8","frm_l34", {"beamDampRebound":"$damp_rebound_R","beamDampVelocitySplit":0.3,"beamDampFast":"$=$damp_bump_R / 3","beamDampReboundFast":"$=$damp_rebound_R / 3","dampCutoffHz":500,
		  "soundFile":"event:>Vehicle>Suspension>car_modn_sml_01>spring_compress_01","colorFactor":0.3,"attackFactor":45,"volumeFactor":2.2,"decayFactor":70,"pitchFactor":1.0,"maxStress":13}],
		["arm_r9","frm_r35", {"beamDampRebound":"$damp_rebound_R","beamDampVelocitySplit":0.3,"beamDampFast":"$=$damp_bump_R / 3","beamDampReboundFast":"$=$damp_rebound_R / 3","dampCutoffHz":500,
		  "soundFile":"event:>Vehicle>Suspension>car_modn_sml_01>spring_compress_01","colorFactor":0.3,"attackFactor":45,"volumeFactor":2.2,"decayFactor":70,"pitchFactor":1.0,"maxStress":13}],


		//bumpstop and extension limiter
		{"beamPrecompression":1.0, "beamType":"|BOUNDED"},
		{"beamSpring":0,"beamDamp":0},
		{"beamLimitSpring":51000,"beamLimitDamp":5000},
		["arm_l8","frm_l34", {"beamLongBound":0.10,"beamShortBound":0.3,"boundZone":0.01,"beamLimitDampRebound":0,"dampCutoffHz":250}],
		["arm_r9","frm_r35", {"beamLongBound":0.10,"beamShortBound":0.3,"boundZone":0.01,"beamLimitDampRebound":0,"dampCutoffHz":250}],
		{"beamPrecompression":1.0, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

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



}