{
"r6_dragengine": {
		"information":{
			"authors":"CRGZ",
			"name":"600cc Inline 4 Drag",
			"value":1799,
		},

		"slotType" : "r6_engine",

		"slots": [
			["type", "default", "description"]
			["r6_radiator","r6_radiator", "Radiator"],
			["r6_transmission","r6_transmission_drag5M", "Transmission"],
			["r6_driveshaft","r6_driveshaft", "Chain/Sprocket"],
			["n2o_system","", "Nitrous Oxide System"],
			["r6_intake","r6_supercharger", "Supercharger"],
			["r6_engine_ecu","r6_engine_ecu", "Adjustable ECU"],
		],
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["r6_engine_new", ["engine_jbeam"]],
			
		],
		
		
		
		"powertrain": [
			["type", "name", "inputName", "inputIndex"],
			["combustionEngine", "mainEngine", "dummy", 0],
		],
		
		"mainEngine": {
			"torque":[
				["rpm", "torque"]
				[0, 0],
				[500, 50],
				[1000, 90],
				[2000, 120],
				[3000, 140],
				[4000, 166],
				[5000, 190],
				[6000, 214],
				[7000, 227],
				[8000, 238],
				[9000, 246],
				[10000, 243],
				[11000, 238],
				[12000, 224],
				[13000, 203],
				[14000, 186],
			],
			"idleRPM":1500,
			"maxRPM":14000,
			"inertia":0.08,
			"friction":2.5
			"dynamicFriction":0.022
			"burnEfficiency":0.28
			"torqueReactionNodes:":["fcr35","fcl34","fcc40"]
			"particulates":0.012
			"energyStorage": "mainTank",
			"requiredEnergyType":"gasoline",

			//cooling and oil system
			"thermalsEnabled":true
			"engineBlockMaterial":"aluminum"
			"oilVolume":3
			"hasOilStarvingDamage":true

			//engine durability
			"cylinderWallTemperatureDamageThreshold":180
			"headGasketDamageThreshold":1500000
			"pistonRingDamageThreshold":1500000
			"connectingRodDamageThreshold":2000000

			//node beam interface
			"waterDamage": {"[engineGroup]:":["engine_intake"]},
			"radiator": {"[engineGroup]:":["radiator_jbeam"]},
			"engineBlock": {"[engineGroup]:":["engine_block"]},
			"breakTriggerBeam":"engine",
			 "soundConfig": "soundConfig",
			 
			 //Startup sound
			"starterSample" :  "art/sound/starter/sr6.ogg",
			"starterSampleExhaust": "art/sound/starter/sr6.ogg",
			"starterVolume":6.00,
			"starterVolumeExhaust":6.0,
			"idleRPMStartRate":2,
			"idleRPMStartCoef":1,
		},

		"soundConfig": {
			"sampleName": "i4",
			"mainGain": -5,
			"maxLoadMix": 0.65,
			"minLoadMix": 0.05,
			"onLoadGain":1,
			"offLoadGain":0.55,
			//"eqLowGain": 10,
			//"eqLowFreq": 400,
			//"eqLowWidth": 0,
			"eqHighGain": 9,
			"eqHighFreq": 5000,
			"eqHighWidth": 0.3,
			//"lowCutFreq":80,
			"fundamentalFrequencyCylinderCount":4
			"eqFundamentalGain": 1
		},	
		"nodes": [
			["id", "posX", "posY", "posZ"],
			{"selfCollision":false},
			{"collision":true},
			{"frictionCoef":0.7}
			{"nodeMaterial":"|NM_METAL"},
			//chassis weight
			{"nodeWeight":0.50},
			{"group":"engine_jbeam"},
			{"engineGroup":"engine_block"},
			["engl0",0.232,0.785,0.232],
			["engr1",-0.232,0.785,0.232],
			["engl2",0.232,0.813,0.696],
			["engr3",-0.232,0.813,0.696],
			["engl4",0.106,1.018,0.745],
			["engr5",-0.106,1.018,0.745],
			["engl6",0.106,1.224,0.554],
			["engr7",-0.106,1.224,0.554],
			["engl8",0.106,1.278,0.241],
			["engr9",-0.106,1.278,0.241],
			{"group":""},
			{"engineGroup":""},
			]
			"beams":[
			["id1:", "id2:"],
			{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
			{"beamSpring":100000,"beamDamp":50},
			{"beamDeform":30000,"beamStrength":"FLT_MAX"},
			["engr9","engr1" {"isExhaust":"mainEngine"}],
			["engr1","engr3"],
			["engl2","engl4"],
			["engr7","engr9"],
			["engl8","engr9"],
			["engr3","engr5"],
			["engl6","engl8"],
			["engl0","engl8"],
			["engl4","engl6"],
			["engl2","engl0"],
			["engr1","engl0"],
			["engr5","engr7"],
			["engr3","engl2"],
			["engr5","engl4"],
			["engl2","engr5"],
			["engr3","engl4"],
			["engl6","engr5"],
			["engr7","engl4"],
			["engl0","engl4"],
			["engl2","engl8"],
			["engl0","engl6"],
			["engr9","engl4"],
			["engl2","engl6"],
			["engr3","engr7"],
			["engr1","engr5"],
			["engr3","engr9"],
			["engr1","engr7"],
			["engr9","engr5"],
			["engl8","engl4"],
			["engr9","engl6"],
			["engr7","engl6"],
			["engr7","engl8"],
			["engr3","engl0"],
			["engr1","engl2"],
			["engr1","engl8"],
			["engr9","engl0"],
			
			//Connection to chassis
			{"beamSpring":100000,"beamDamp":50},
			{"beamDeform":30000,"beamStrength":13000},
			{"breakGroup":"Engine"},
			["engr9","fcr35"],
			["engr9","fcc33"],
			["engl8","fcl34"],
			["engl8","fcc33"],
			
			["engr3","fcr20"],
			["engr3","fcl19"],
			
			["engl2","fcr20"],
			["engl2","fcl19"],
			
			["engl0","fcr20"],
			["engl0","fcl19"],
			
			["engr1","fcr20"],
			["engr1","fcl19"],
			{"breakGroup":""},
		],
		"triangles": [
		["id1:", "id2:", "id3:"]
		["engl2","engl6","engl4"]
		["engr5","engr7","engr3"]
		]
		"quads": [
		["id1:", "id2:", "id3:","id4:"]
		["engl2","engl0","engl8","engl6"]
		["engl6","engl8","engr9","engr7"]
		["engr7","engr9","engr1","engr3"]
		["engl4","engl6","engr7","engr5"]
		["engl2","engl4","engr5","engr3"]
		]
	},
	"r6_dragengine_n": {
		"information":{
			"authors":"CRGZ",
			"name":"600cc Inline 4 Drag",
			"value":1799,
		},

		"slotType" : "r6_engine_n",

		"slots": [
			["type", "default", "description"]
			["r6_radiator_n","r6_radiator_n", "Radiator"],
			["r6_transmission","r6_transmission_drag5M", "Transmission"],
			["r6_driveshaft","r6_driveshaft", "Chain/Sprocket"],
			["n2o_system","", "Nitrous Oxide System"],
			["r6_intake","r6_supercharger", "Supercharger"],
			["r6_engine_ecu","r6_engine_ecu", "Adjustable ECU"],
		],
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["r6_engine_new", ["engine_jbeam"]],
		],
		
		
		
		"powertrain": [
			["type", "name", "inputName", "inputIndex"],
			["combustionEngine", "mainEngine", "dummy", 0],
		],
		
		"mainEngine": {
			"torque":[
				["rpm", "torque"]
				[0, 0],
				[500, 50],
				[1000, 90],
				[2000, 120],
				[3000, 140],
				[4000, 166],
				[5000, 190],
				[6000, 214],
				[7000, 227],
				[8000, 238],
				[9000, 246],
				[10000, 243],
				[11000, 238],
				[12000, 224],
				[13000, 203],
				[14000, 186],
			],
			"idleRPM":1500,
			"maxRPM":14000,
			"inertia":0.08,
			"friction":2.5
			"dynamicFriction":0.022
			"burnEfficiency":0.28
			"torqueReactionNodes:":["fcr35","fcl34","fcc40"]
			"particulates":0.012
			"energyStorage": "mainTank",
			"requiredEnergyType":"gasoline",

			//cooling and oil system
			"thermalsEnabled":true
			"engineBlockMaterial":"aluminum"
			"oilVolume":3
			"hasOilStarvingDamage":true

			//engine durability
			"cylinderWallTemperatureDamageThreshold":180
			"headGasketDamageThreshold":1500000
			"pistonRingDamageThreshold":1500000
			"connectingRodDamageThreshold":2000000

			//node beam interface
			"waterDamage": {"[engineGroup]:":["engine_intake"]},
			"radiator": {"[engineGroup]:":["radiator_jbeam"]},
			"engineBlock": {"[engineGroup]:":["engine_block"]},
			"breakTriggerBeam":"engine",
			 "soundConfig": "soundConfig",
			 
			 //Startup sound
			"starterSample" :  "art/sound/starter/sr6.ogg",
			"starterSampleExhaust": "art/sound/starter/sr6.ogg",
			"starterVolume":6.00,
			"starterVolumeExhaust":6.0,
			"idleRPMStartRate":2,
			"idleRPMStartCoef":1,
		},

		"soundConfig": {
			"sampleName": "i4",
			"mainGain": -5,
			"maxLoadMix": 0.65,
			"minLoadMix": 0.05,
			"onLoadGain":1,
			"offLoadGain":0.55,
			//"eqLowGain": 10,
			//"eqLowFreq": 400,
			//"eqLowWidth": 0,
			"eqHighGain": 9,
			"eqHighFreq": 5000,
			"eqHighWidth": 0.3,
			//"lowCutFreq":80,
			"fundamentalFrequencyCylinderCount":4
			"eqFundamentalGain": 1
		},	
		"nodes": [
			["id", "posX", "posY", "posZ"],
			{"selfCollision":false},
			{"collision":true},
			{"frictionCoef":0.7}
			{"nodeMaterial":"|NM_METAL"},
			//chassis weight
			{"nodeWeight":0.50},
			{"group":"engine_jbeam"},
			{"engineGroup":"engine_block"},
			["engl0",0.232,0.785,0.232],
			["engr1",-0.232,0.785,0.232],
			["engl2",0.232,0.813,0.696],
			["engr3",-0.232,0.813,0.696],
			["engl4",0.106,1.018,0.745],
			["engr5",-0.106,1.018,0.745],
			["engl6",0.106,1.224,0.554],
			["engr7",-0.106,1.224,0.554],
			["engl8",0.106,1.278,0.241],
			["engr9",-0.106,1.278,0.241],
			{"group":""},
			{"engineGroup":""},
			]
			"beams":[
			["id1:", "id2:"],
			{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
			{"beamSpring":100000,"beamDamp":50},
			{"beamDeform":30000,"beamStrength":"FLT_MAX"},
			["engr9","engr1" {"isExhaust":"mainEngine"}],
			["engr1","engr3"],
			["engl2","engl4"],
			["engr7","engr9"],
			["engl8","engr9"],
			["engr3","engr5"],
			["engl6","engl8"],
			["engl0","engl8"],
			["engl4","engl6"],
			["engl2","engl0"],
			["engr1","engl0"],
			["engr5","engr7"],
			["engr3","engl2"],
			["engr5","engl4"],
			["engl2","engr5"],
			["engr3","engl4"],
			["engl6","engr5"],
			["engr7","engl4"],
			["engl0","engl4"],
			["engl2","engl8"],
			["engl0","engl6"],
			["engr9","engl4"],
			["engl2","engl6"],
			["engr3","engr7"],
			["engr1","engr5"],
			["engr3","engr9"],
			["engr1","engr7"],
			["engr9","engr5"],
			["engl8","engl4"],
			["engr9","engl6"],
			["engr7","engl6"],
			["engr7","engl8"],
			["engr3","engl0"],
			["engr1","engl2"],
			["engr1","engl8"],
			["engr9","engl0"],
			
			//Connection to chassis
			{"beamSpring":100000,"beamDamp":50},
			{"beamDeform":30000,"beamStrength":13000},
			{"breakGroup":"Engine"},
			["engr9","fcr35"],
			["engr9","fcc33"],
			["engl8","fcl34"],
			["engl8","fcc33"],
			
			["engr3","fcr20"],
			["engr3","fcl19"],
			
			["engl2","fcr20"],
			["engl2","fcl19"],
			
			["engl0","fcr20"],
			["engl0","fcl19"],
			
			["engr1","fcr20"],
			["engr1","fcl19"],
			{"breakGroup":""},
		],
		"triangles": [
		["id1:", "id2:", "id3:"]
		["engl2","engl6","engl4"]
		["engr5","engr7","engr3"]
		]
		"quads": [
		["id1:", "id2:", "id3:","id4:"]
		["engl2","engl0","engl8","engl6"]
		["engl6","engl8","engr9","engr7"]
		["engr7","engr9","engr1","engr3"]
		["engl4","engl6","engr7","engr5"]
		["engl2","engl4","engr5","engr3"]
		]
	},
}