{
"engine_2T":{
	"information":{
		"authors":"TonyCartony",
		"name":"2T Engine - 300cc",
	},
	"slotType":"engine",
	
	"slots": [
		["type", "default", "description"]
		["eng_transmission","eng_transmission_2T", "Transmission"],
		["eng_driveshaft","eng_driveshaft", "Chain/Sprocket"],
		["exhaust", "exhaust_2T", "Exhaust"],				
		["eng_structure", "eng_structure", "Engine Body"],				
	],

	"powertrain": [
		["type", "name", "inputName", "inputIndex"],
		["combustionEngine", "mainEngine", "dummy", 0],
	],
	
	
	"mainEngine": {
		"torque":[
			["rpm", "torque"]
			[0, 30],
			[500, 35],
			[1000, 40],
			[2000, 55],
			[3000, 60],
			[4000, 75],
			[5000, 95],
			[6000, 115],
			[7000, 125],
			[8000, 145],
			[9000, 185],
			[10000,195],
			[11000, 205],
			[12000, 185],
		],
		"idleRPMRoughness":300,
		"idleRPM":1000,
		"maxRPM":12000,
		"inertia":0.02,
		"friction":4
		"dynamicFriction":0.022
		"burnEfficiency":1.28
		"torqueReactionNodes:":["frm_l16","frm_l24","frm_l30"]
		"particulates":0.15
		"idleParticulates":0.06
		"instantAfterFireCoef":1
		"energyStorage": "mainTank",
		"requiredEnergyType":"gasoline",
		"instantAfterFireSound": "event:>Vehicle>Afterfire>i4_01>single",
		"sustainedAfterFireSound": "event:>Vehicle>Afterfire>i4_01>multi",
		"shiftAfterFireSound": "event:>Vehicle>Afterfire>i4_01>shift_dct",
		"instantAfterFireCoef": 0.9,
		"sustainedAfterFireCoef": 0.5,
		"instantAfterFireVolumeCoef": 0.8,
		"sustainedAfterFireVolumeCoef": 0.8,
		"shiftAfterFireVolumeCoef": 0.6,		

		//cooling and oil system
		"thermalsEnabled":true
		"engineBlockMaterial":"aluminum"
		"oilVolume":5
		"isAirCooledOnly":false

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

		//node beam interface
		"radiator": {"[engineGroup]:":["kx_radiator"]},
		"engineBlock": {"[engineGroup]:":["engine_block"]},
		"breakTriggerBeam":"engine",

		"soundConfig": "soundConfig_2T",

	},

	
	"soundConfig_2T": {
        "sampleName": "motocross",
        "intakeMuffling": 0.0,

        "mainGain": 0.2,
        "onLoadGain":1.0,
        "offLoadGain":0.2,

        "maxLoadMix": 1,
        "minLoadMix": 0,


        "eqLowGain": 1,
        "eqLowFreq": 150,
        "eqLowWidth": 0.2,

        "eqHighGain": -15,
        "eqHighFreq": 10000,
        "eqHighWidth": 0.3,

        "lowShelfGain":10,
        "lowShelfFreq":100,

        "highShelfGain":-10,
        "highShelfFreq":7000,

        "fundamentalFrequencyCylinderCount":3,
        "eqFundamentalGain":-10,
			
		"lowCutFreq":1000,
		"highCutFreq":15000,

    },
},	

"engine_4T":{
	"information":{
		"authors":"TonyCartony",
		"name":"4T Engine - 450cc",
	},
	"slotType":"engine",
	
	"slots": [
		["type", "default", "description"]
		["eng_transmission","eng_transmission_4T", "Transmission"],
		["eng_driveshaft","eng_driveshaft", "Chain/Sprocket"],
		["exhaust", "exhaust_4T", "Exhaust"],				
		["eng_structure", "eng_structure", "Engine body"],				
	],

	"powertrain": [
		["type", "name", "inputName", "inputIndex"],
		["combustionEngine", "mainEngine", "dummy", 0],
	],
	

	
	"mainEngine": {
		"torque":[
			["rpm", "torque"]
			[0, 30],
			[500, 45],
			[1000, 50],
			[2000, 75],
			[3000, 105],
			[4000, 155],
			[5000, 185],
			[6000, 205],
			[7000, 215],
			[8000, 225],
			[9000, 185],
			[10000, 175],
		],
		"idleRPMRoughness":300,
		"idleRPM":1000,
		"maxRPM":10000,
		"inertia":0.02,
		"friction":4
		"dynamicFriction":0.022
		"burnEfficiency":1.28
		"torqueReactionNodes:":["frm_l16","frm_l24","frm_l30"]
		"particulates":0.15
		"idleParticulates":0.06
		"instantAfterFireCoef":1
		"energyStorage": "mainTank",
		"requiredEnergyType":"gasoline",
		"instantAfterFireSound": "event:>Vehicle>Afterfire>i4_01>single",
		"sustainedAfterFireSound": "event:>Vehicle>Afterfire>i4_01>multi",
		"shiftAfterFireSound": "event:>Vehicle>Afterfire>i4_01>shift_dct",
		"instantAfterFireCoef": 0.9,
		"sustainedAfterFireCoef": 0.5,
		"instantAfterFireVolumeCoef": 0.8,
		"sustainedAfterFireVolumeCoef": 0.8,
		"shiftAfterFireVolumeCoef": 0.6,		

		//cooling and oil system
		"thermalsEnabled":true
		"engineBlockMaterial":"aluminum"
		"oilVolume":5
		"isAirCooledOnly":false

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

		//node beam interface
		"radiator": {"[engineGroup]:":["kx_radiator"]},
		"engineBlock": {"[engineGroup]:":["engine_block"]},
		"breakTriggerBeam":"engine",

		"soundConfig": "soundConfig_4T",
		"soundConfigExhaust": "soundConfigExhaust_4T",

	},

	
	"soundConfig_4T": {
        "sampleName": "B4_2_engine_rear",
        "intakeMuffling": 0.6,

        "mainGain": 12,
        "onLoadGain":1.0,
        "offLoadGain":0.67,

        "maxLoadMix": 0.95,
        "minLoadMix": 0,

        "eqLowGain": 8,
        "eqLowFreq": 350,
        "eqLowWidth": 0.2,

        "eqHighGain": 8,
        "eqHighFreq": 1200,
        "eqHighWidth": 0.3,

        "lowShelfGain":-2,
        "lowShelfFreq":120,

        "highShelfGain":10,
        "highShelfFreq":5500,

        "fundamentalFrequencyCylinderCount":4,
        "eqFundamentalGain":0,
    },
	
    "soundConfigExhaust_4T": {
        "sampleName": "B4_2_exhaust",

        "mainGain": 2,
        "onLoadGain":1.0,
        "offLoadGain":0.7,

        "maxLoadMix": 0.75,
        "minLoadMix": 0,

        "eqLowGain": 12,
        "eqLowFreq": 450,
        "eqLowWidth": 0.3,

        "eqHighGain": 20,
        "eqHighFreq": 7500,
        "eqHighWidth": 0.25,

        "lowShelfGain":0,
        "lowShelfFreq":140,

        "highShelfGain":4,
        "highShelfFreq":2500,

        "fundamentalFrequencyCylinderCount":4,
        "eqFundamentalGain": 0,
    },
},	


"eng_structure":{
	"information":{
		"authors":"TonyCartony",
		"name":"Stock Engine Body",
	},
	"slotType":"eng_structure",
	
	"flexbodies": [
		 ["mesh", "[group]:", "nonFlexMaterials"],
		 ["engine", ["engine"]],
	 ],
	
//--Nodes--
	"nodes":[
		["id", "posX", "posY", "posZ"],
		{"selfCollision":true},
		{"collision":true},
		{"frictionCoef":0.3},
		{"nodeMaterial":"|NM_METAL"},
		{"nodeWeight":2.0},
		{"group":"engine"},
		{"engineGroup":"engine_block"},
		["eng_l0", 0.08800, -0.26200, 0.44200],
		["eng_r1", -0.08400, -0.26200, 0.44200],
		["eng_l2", 0.08800, -0.24800, 0.86000],
		["eng_r3", -0.08400, -0.24800, 0.86000{"isExhaust":true,"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat":0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.15}],
		["eng_l4", 0.08800, 0.14700, 0.86100],
		["eng_r5", -0.08400, 0.14700, 0.86100],
		["eng_l6", 0.08800, 0.16300, 0.44200],
		["eng_r7", -0.08400, 0.16300, 0.44200],
		{"group":""},
	],
//--Beams--
	"beams":[
		["id1:", "id2:"],
		{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},	
		
		//connection to frame
		{"beamSpring":5000,"beamDamp":200},		
		{"beamDeform":1000,"beamStrength":"$=2000*$attachStrength"},
		{"breakGroup":"engine_holder"},
		["eng_r3","frm_r10"],
		["eng_r3","frm_l9"],
		["eng_l2","frm_r10"],
		["eng_l2","frm_l9"],
		["eng_r3","frm_r23"],
		["eng_r3","frm_l22"],
		["eng_l2","frm_r23"],
		["eng_l2","frm_l22"],

		["eng_r5","frm_r29"],
		["eng_r5","frm_l28"],
		["eng_l4","frm_r29"],
		["eng_l4","frm_l28"],
		["eng_r5","frm_r23"],
		["eng_r5","frm_l22"],
		["eng_l4","frm_r23"],
		["eng_l4","frm_l22"],
		
		["eng_r1","frm_r17"],
		["eng_r1","frm_l16"],
		["eng_l0","frm_r17"],
		["eng_l0","frm_l16"],
		["eng_r1","frm_r15"],
		["eng_r1","frm_l14"],
		["eng_l0","frm_r15"],
		["eng_l0","frm_l14"],

		["eng_r7","frm_r33"],
		["eng_r7","frm_l32"],
		["eng_l6","frm_r33"],
		["eng_l6","frm_l32"],
		["eng_r7","frm_r31"],
		["eng_r7","frm_l30"],
		["eng_l6","frm_r31"],
		["eng_l6","frm_l30"],


		//engine
		{"breakGroup":"engine"},
		{"beamSpring":1000,"beamDamp":200},		
		{"beamDeform":5000,"beamStrength":"FLT_MAX"},
		["eng_r1","eng_l0"],
		["eng_l6","eng_r7"],
		["eng_r5","eng_l4"],
		["eng_l4","eng_l6"],
		["eng_l0","eng_l4"],
		["eng_r1","eng_l2"],
		["eng_r3","eng_l0"],
		["eng_r1","eng_l6"],
		["eng_l2","eng_r3"],
		["eng_r1","eng_l4"],
		["eng_l2","eng_l6"],
		["eng_r3","eng_l6"],
		["eng_r7","eng_l2"],
		["eng_r3","eng_l4"],
		["eng_r5","eng_l0"],
		["eng_r5","eng_l2"],
		["eng_r7","eng_l4"],
		["eng_r5","eng_l6"],
		["eng_r7","eng_l0"],
		["eng_l0","eng_l6"],
		["eng_r1","eng_r3"],
		["eng_r3","eng_r5"],
		["eng_r7","eng_r1"],
		["eng_r1","eng_r5"],
		["eng_r3","eng_r7"],
		["eng_r7","eng_r5"],
		["eng_l4","eng_l2"],
		["eng_l2","eng_l0"],
		{"breakGroup":"engine"},		
	],
//--Collision Triangles--
	"triangles":[
		["id1:", "id2:", "id3:"],
		["eng_r3","eng_r7","eng_r1"],
		["eng_r5","eng_l6","eng_r7"],
		["eng_l6","eng_l2","eng_l0"],
		["eng_l2","eng_r1","eng_l0"],
		["eng_l6","eng_r1","eng_r7"],
		["eng_r5","eng_l2","eng_l4"],
		["eng_r3","eng_r5","eng_r7"],
		["eng_r5","eng_l4","eng_l6"],
		["eng_l6","eng_l4","eng_l2"],
		["eng_l2","eng_r3","eng_r1"],
		["eng_l6","eng_l0","eng_r1"],
		["eng_r5","eng_r3","eng_l2"],
	],
},

"eng_transmission_2T": {
		"information":{
			"authors":"TonyCartony",
			"name":"6-Speed Manual Transmission for 2T",
			"value":250,
		},

		"slotType" : "eng_transmission",

		"variables": [
			["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
			["$gear_R", "range", ":1", "Transmission", -5.15, -10.0, -0.5, "Reverse Gear Ratio", "Torque multiplication ratio"]
			["$gear_1", "range", ":1", "Transmission", 9.9, 1.0, 15.0, "1st Gear Ratio", "Torque multiplication ratio"]
			["$gear_2", "range", ":1", "Transmission", 9.8, 1.0, 15.0, "2nd Gear Ratio", "Torque multiplication ratio"]
			["$gear_3", "range", ":1", "Transmission", 8.7, 1.0, 15.0, "3rd Gear Ratio", "Torque multiplication ratio"]
			["$gear_4", "range", ":1", "Transmission", 7.7, 1.0, 15.0, "4th Gear Ratio", "Torque multiplication ratio"]
			["$gear_5", "range", ":1", "Transmission", 7.0, 1.0, 15.0, "5th Gear Ratio", "Torque multiplication ratio"]
			["$gear_6", "range", ":1", "Transmission", 5.0, 0.5, 15.0, "6th Gear Ratio", "Torque multiplication ratio"]
			["$clutch", "range", "s", "Transmission", 0.25, 0.05, 1.5, "Clutch Duration", "Clutch shifting speed"]
		],
		
		"powertrain": [
			["type", "name", "inputName", "inputIndex"],
			["frictionClutch", "clutch", "mainEngine", 1],
			["manualGearbox", "gearbox", "clutch", 1],
		],
		"gearbox": {
			"gearRatios":["$gear_R", 0, "$gear_1", "$gear_2", "$gear_3", "$gear_4", "$gear_5", "$gear_6"],
			"friction": 1,
		},
		"clutch": {},
		"vehicleController": {
			"lowShiftDownRPM":4000,
			"lowShiftUpRPM":7500,
			"highShiftDownRPM":2000,
			"highShiftUpRPM":8500,
		},
		
	},

"eng_transmission_4T": {
		"information":{
			"authors":"TonyCartony",
			"name":"6-Speed Manual Transmission for 4T",
			"value":250,
		},

		"slotType" : "eng_transmission",

		"variables": [
			["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
			["$gear_R", "range", ":1", "Transmission", -5.15, -10.0, -0.5, "Reverse Gear Ratio", "Torque multiplication ratio"]
			["$gear_1", "range", ":1", "Transmission", 9.0, 1.0, 15.0, "1st Gear Ratio", "Torque multiplication ratio"]
			["$gear_2", "range", ":1", "Transmission", 8.0, 1.0, 15.0, "2nd Gear Ratio", "Torque multiplication ratio"]
			["$gear_3", "range", ":1", "Transmission", 6.0, 1.0, 15.0, "3rd Gear Ratio", "Torque multiplication ratio"]
			["$gear_4", "range", ":1", "Transmission", 5.5, 1.0, 15.0, "4th Gear Ratio", "Torque multiplication ratio"]
			["$gear_5", "range", ":1", "Transmission", 4.5, 1.0, 15.0, "5th Gear Ratio", "Torque multiplication ratio"]
			["$gear_6", "range", ":1", "Transmission", 3.5, 0.5, 15.0, "6th Gear Ratio", "Torque multiplication ratio"]
			["$clutch", "range", "s", "Transmission", 0.25, 0.05, 1.5, "Clutch Duration", "Clutch shifting speed"]
		],
		
		"powertrain": [
			["type", "name", "inputName", "inputIndex"],
			["frictionClutch", "clutch", "mainEngine", 1],
			["manualGearbox", "gearbox", "clutch", 1],
		],
		"gearbox": {
			"gearRatios":["$gear_R", 0, "$gear_1", "$gear_2", "$gear_3", "$gear_4", "$gear_5", "$gear_6"],
			"friction": 1,
		},
		"clutch": {},
		"vehicleController": {
			"lowShiftDownRPM":3000,
			"lowShiftUpRPM":4500,
			"highShiftDownRPM":2000,
			"highShiftUpRPM":6000,
		},
		
	},	

"eng_driveshaft": {
		"information":{
			"authors":"TonyCartony",
			"name":"Chain/Sprocket",
			"value":200,
		}
		
		"slotType" : "eng_driveshaft",
		
		"variables": [
			["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
			["$finaldrive", "range", ":1", "Transmission", 2.3, 2.3, 6.0, "Chain/Sprocket Ratio", "Torque multiplication ratio"]
		],
		
		"powertrain" : [
			["type", "name", "inputName", "inputIndex"]
			["shaft", "driveshaft", "gearbox", 1, {"connectedWheel":"RR", "breakTriggerBeam":"driveshaft", "electricsName":"driveshaft", "gearRatio":"$finaldrive", "friction":2}]
		],
		
		"beams": [
			["id1:", "id2:"],
			//driveshaft
			{"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.01, "beamShortBound":0.01},
			{"beamSpring":0,"beamDamp":0,"beamDeform":1200,"beamStrength":"$=5000*$attachStrength"},
			{"beamLimitSpring":3001000,"beamLimitDamp":250},
			["frm_l30","rax_axl_l", {"name":"driveshaft","optional":true,"breakGroup":"driveshaft","deformGroup":"driveshaft"}],
			{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
			{"breakGroup":""},
		],
		
	},

}