Engine

Engine

From BeamNG

Overview

The engine part of the Jbeam is essential for making your vehicle move and function. An engine will also need a Transmission

Example Engine

{
"hatch_engine": {
	"information":{
		"authors":"gabester",
		"name":"Ibishu Covet 1.5L I4 Engine",
	}
    "slotType" : "hatch_engine",
	"scalenodeWeight":0.62,
	"scalebeamSpring":0.46,
	"scalebeamDamp":0.58,
	"scalebeamDeform":0.39,
	"scalebeamStrength":0.51,
	"slots": [
		["type", "default", "description"]
		["hatch_transmission","hatch_transmission_4A", "Ibishu Covet Transmission"],
	],
	"flexbodies": [
		 ["mesh", "[group]:", "nonFlexMaterials"],
		 ["hatch_engine", ["hatch_engine"]],
	],
	"enginetorque":[
		["rpm", "torque"] //Torque curve
		[0, 0],
		[500, 60],
		[1000, 73],
		[2000, 93],
		[3000, 115],
		[4000, 132],
		[4500, 134],
		[5000, 135],
		[6000, 134],
		[7000, 114],
		[7500, 90],
	],
	"engine":{
		"idleRPM":1000, //Idling RPM
		"shiftDownRPM":3400, //Down shift, for automatic
		"shiftUpRPM":6400, //Up shift, for automatic
		"maxRPM":7500, //Max RPM for the engine, basically a redline. 
		"inertia":0.08,
		"friction":16
		"brakingCoefRPS":0.15
		"burnEfficiency":0.5
		"throttleSensitivity":1.2
		"torqueReactionNodes:":["e1l","e2l","e4r"]
		},
	"nodes": [
		 ["id", "posX", "posY", "posZ"],
		 //--1.5L I4 Engine--
		 {"selfCollision":false},
		 {"collision":true}
		 {"nodeMaterial":"|NM_METAL"},
		 {"frictionCoef":0.7},
		 {"group":"hatch_engine"},
		 {"nodeWeight":22},
		 ["e1r", -0.12, -1.62, 0.30],
		 ["e1l", -0.12, -1.31, 0.30],
		 {"nodeWeight":18},
		 ["e2r", 0.37, -1.62, 0.30],
		 ["e2l", 0.37, -1.31, 0.30],
		 {"engineGroup":"hatch_engine_intake"}
		 {"nodeWeight":22},
		 ["e3r", -0.12, -1.62, 0.74],
		 ["e3l", -0.12, -1.31, 0.74],
		 {"nodeWeight":18},
		 ["e4r", 0.37, -1.62, 0.74],
		 ["e4l", 0.37, -1.31, 0.74],
		 {"engineGroup":""}
		 {"group":""},
		 
	],
	
	"beams": [
		  ["id1:", "id2:"],
		  {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
		  		  
	      {"beamSpring":14001000,"beamDamp":250},
		  {"beamDeform":2000000,"beamStrength":"FLT_MAX"},
		  //engine
		  ["e1r","e1l"],
		  ["e2r","e2l"],
		  ["e3r","e3l"],
		  ["e4r","e4l"],
		  
		  ["e1r","e2r"],
		  ["e1l","e2l"],
		  ["e3r","e4r"],
		  ["e3l","e4l"],
		  
		  ["e1r","e3r"],
		  ["e1l","e3l"],
		  ["e2r","e4r"],
		  ["e2l","e4l"],
		  
		  ["e2r","e3r"],
		  ["e2l","e3l"],
		  ["e2r","e3l"],
		  ["e2l","e3r"],
		  
		  ["e1r","e4r"],
		  ["e1l","e4l"],
		  ["e1r","e4l"],
		  ["e1l","e4r"],
		  
		  ["e1r","e2l"],
		  ["e1l","e2r"],
		  ["e3r","e4l"],
		  ["e3l","e4r"],
		  
		  ["e1r","e3l"],
		  ["e1l","e3r"],
		  ["e2r","e4l"],
		  ["e2l","e4r"],
		  
		  
		  {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
	],
}