{
"Zil130_axle_R_1": {
    "information":{
        "authors":"Bagusik",
        "name":"Rear Axle",
        "value":1200,
    },
    "slotType" : "Zil130_axle_R_1",
    "slots": [
        ["type", "default", "description"],
        ["Zil130_spring_R_1","Zil130_spring_R_1", "Front Rear Springs & Airbags"],
        ["Zil130_shock_R_1","Zil130_shock_R_1", "Front Rear Shocks"],
        ["Zil130_brake_R_1","Zil130_brake_R_1", "Front Rear Brakes"],
        ["Zil130_transfer_case","Zil130_transfer_case_singleaxle", "Transfer Case"],
        ["Zil130_driveshaft","Zil130_driveshaft", "Rear Driveshaft"],
        ["Zil130_differential_R_1","Zil130_differential_R_1", "Front Rear Differential"],
        ["Zil130_wheel_R_1","Zil130_wheel_R_1", "Front Rear Wheels"],
        ["Zil130_wheeldata_R_1","Zil130_wheeldata_R_1", "Front Rear Spindles", {"coreSlot":true}],
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["Zil130_axle_R_1", ["Zil130_axle_R_1","Zil130_driveshaft"]],
         ["Zil130_panhard_1", ["Zil130_panhard_1"]],
         ["Zil130_panhard_axis_F", ["Zil130_frame","Zil130_panhard_axis"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //--REAR RUNNING GEAR--
         {"nodeWeight":50},
         //driveshaft frontward-most node
         {"group":"Zil130_driveshaft"},
         {"selfCollision":true},
         {"collision":true},
         ["ra1", 0.00000, 0.34182, 0.55000, {"selfCollision":false}],
         ["ra2", 0.00000, 1.40182, 0.50000],
         {"nodeWeight":30},
         ["ra4", 0.00000, 1.02182, 0.21000, {"group":["Zil130_driveshaft","Zil130_panhard_1"]}],
         {"selfCollision":false},
         ["ra3", -0.30000, 1.02182, 0.73000, {"group":["Zil130_driveshaft","Zil130_panhard_1"]}],
         //leaf base 1
         {"selfCollision":true},
         {"group":"Zil130_leafbase_R_1"},
         ["ra6r", -0.57000, 1.36682, 0.27000],
         ["ra6l", 0.57000, 1.36682, 0.27000],
         ["ra5r", -0.57000, 0.79182, 0.27000],
         ["ra5l", 0.57000, 0.79182, 0.27000],
         {"group":"Zil130_panhard_1"},
         //panhard rod on frame 1
         {"selfCollision":false},
         ["ph1", 0.33500, 1.02182, 0.80000, {"nodeWeight":10}],
         //{"selfCollision":true}
         {"group":["Zil130_axle_R_1","Zil130_leaftop_R_1"]},
         //axle upper
         ["ra2l", 0.57000, 1.02182, 0.72000],
         ["ra2r", -0.57000, 1.02182, 0.72000],
         {"nodeWeight":35.7},
         {"group":"Zil130_leaftop_R_1"},
         //rear leaf nodes 1
         {"selfCollision":false},
         ["rl1r", -0.53000, 0.33182, 0.53000],
         ["rl1l", 0.53000, 0.33182, 0.53000],
         {"group":"Zil130_airbagtop_R_1"},
         //airbag top nodes 1
         ["ab1r", -0.38300, 1.36182, 0.69000],
         ["ab1l", 0.38300, 1.36182, 0.69000],
         //refnode
         {"group":""},
         ["ra1ref", 0.00000, 0.34182, 0.60000,{"collision":false,"selfCollision":false,"nodeWeight":5.1}],
         {"group":""},
         //["rh1r", -0.53, 1.46, 0.45],
         //["rh1rr", -1.10, 1.46, 0.45],
         //{"group":"wheelhub_RL_1"}
         //["rh1l", 0.53, 1.46, 0.45],
         //["rh1ll", 1.10, 1.46, 0.45],
    ],
    "beams": [
          ["id1:", "id2:"],
          //--REAR RUNNING GEAR--
          //rear wheel to axle
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":50001000,"beamDamp":500},
          {"beamDeform":250000,"beamStrength":950000},
          //left
          {"breakGroup":"wheel_RL_1"},
          ["rh1l","ra2l"],
          ["rh1l","ra6l"],
          ["rh1l","ra5l"],
          ["rh1l","rl1l", {"beamSpring":20001000,"beamDamp":1000}],
          ["rh1l","ra1" {"name":"axle_RL1_1"}],
          ["rh1l","ra2", {"name":"axle_RL2_1"}],
          ["rh1l","ra4"],
          ["rh1ll","ra6l"],
          ["rh1ll","ra2l"],
          ["rh1ll","ra5l"],
          ["rh1ll","rl1l", {"beamSpring":20001000,"beamDamp":1000}],
          //right
          {"breakGroup":"wheel_RR_1"},
          ["rh1r","ra2r"],
          ["rh1r","ra6r"],
          ["rh1r","ra5r"],
          ["rh1r","rl1r", {"beamSpring":20001000,"beamDamp":1000}],
          ["rh1r","ra1", {"name":"axle_RR1_1"}],
          ["rh1r","ra2", {"name":"axle_RR2_1"}],
          ["rh1r","ra4"],
          ["rh1rr","ra2r"],
          ["rh1rr","ra6r"],
          ["rh1rr","ra5r"],
          ["rh1rr","rl1r", {"beamSpring":20001000,"beamDamp":1000}],
          {"breakGroup":""},
          //center
          {"beamSpring":20001000,"beamDamp":2000},
          {"beamDeform":200000,"beamStrength":"FLT_MAX"},
          ["ra1","ra5r"],
          ["ra1","ra5l"],
          ["ra1","ra2l"],
          ["ra1","ra2r"],
          ["ra2","ra2l"],
          ["ra2","ra2r"],
          ["ra2","ra5r"],
          ["ra2","ra5l"],
          ["ra3","ra2l"],
          ["ra3","ra2r"],
          ["ra4","ra2l"],
          ["ra4","ra2r"],
          ["ra4","ra3"],
          ["ra3","ra2"],
          ["ra3","ra1"],
          ["ra4","ra2"],
          ["ra4","ra1"],
          ["ra4","ra5r"],
          ["ra4","ra5l"],

          ["ra1","ra6l"],
          ["ra2","ra6l"],
          ["ra4","ra6l"],
          ["ra1","ra6r"],
          ["ra2","ra6r"],
          ["ra4","ra6r"],

          //axle attach to springs
          {"beamDeform":300000,"beamStrength":"FLT_MAX"},
          ["ra2l","rl1l", {"beamSpring":4001000,"beamDamp":10000,"dampCutoffHz":250}],
          ["ra2r","rl1r", {"beamSpring":4001000,"beamDamp":10000,"dampCutoffHz":250}],
          ["ra6r","rl1r"],
          ["ra6l","rl1l"],
          //crossing
          ["ra2r","rl1l", {"beamSpring":4001000,"beamDamp":10000,"dampCutoffHz":250}],
          ["ra2l","rl1r", {"beamSpring":4001000,"beamDamp":10000,"dampCutoffHz":250}],

          //rigid parts
          {"beamSpring":40001000,"beamDamp":2000},
          {"beamDeform":200000,"beamStrength":"FLT_MAX"},
          ["ra2r","ra2l"],
          ["ra6r","ra6l"],
          ["ra5l","ra5r"],

          {"beamDeform":60000,"beamStrength":720000},
          {"beamSpring":40001000,"beamDamp":2000},
          ["ra2l","ra6l"],
          ["ra6l", "ra5l"],
          ["ra2l", "ra5l"],

          ["ra2r","ra6r"],
          ["ra6r", "ra5r"],
          ["ra2r", "ra5r"],

          //crossing
          ["ra2r", "ra5l"],
          ["ra5r", "ra2l"],
          ["ra6r", "ra5l"],
          ["ra5r", "ra6l"],
          ["ra2r","ra6l"],
          ["ra2l","ra6r"],

          //airbag attachment to frame
          {"beamSpring":16001000,"beamDamp":1500},
          {"beamDeform":200000,"beamStrength":400000},
          ["ab1r","f18r"],
          ["ab1l","f18l"],
          ["ab1r","f8r"],
          ["ab1l","f8l"],
          ["ab1r","f9r"],
          ["ab1l","f9l"],
          ["ab1r","f19r"],
          ["ab1l","f19l"],
          //crossing
          ["ab1r","f18l"],
          ["ab1l","f18r"],
          ["ab1r","f8l"],
          ["ab1l","f8r"],
          ["ab1r","f9l"],
          ["ab1l","f9r"],
          ["ab1r","f19l"],
          ["ab1l","f19r"],
          //rear leaf attachment 1
          {"beamDeform":250000,"beamStrength":950000},
          ["rl1l","rl1r"],
          ["rl1l","f7l"],
          ["rl1l","f7r"],
          ["rl1l","f8l"],
          ["rl1l","f8r"],
          ["rl1l","f17l"],
          ["rl1l","f17r"],
          ["rl1l","f18l"],
          ["rl1l","f18r"],
          ["rl1r","f8l"],
          ["rl1r","f8r"],
          ["rl1r","f18l"],
          ["rl1r","f18r"],
          ["rl1r","f7l"],
          ["rl1r","f7r"],
          ["rl1r","f17l"],
          ["rl1r","f17r"],
          //panhard attachment
          ["ph1","f8l"],
          ["ph1","f18l"],
          ["ph1","ab1l"],
          {"beamDeform":1000,"beamStrength":2000},
          {"beamSpring":4000,"beamDamp":100},
          //panhard rod
          ["ra3","ph1"],
          //ref node
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":8000800,"beamDamp":80},
          {"beamDeform":300000,"beamStrength":"FLT_MAX"},
          ["ra2l","ra1ref"],
          ["ra2r","ra1ref"],
          ["ra1","ra1ref"],
        //hard limiters
        {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":0.5, "beamShortBound":0.4},
        {"beamSpring":0,"beamDamp":0,"beamDeform":200000,"beamStrength":350000},
        {"beamLimitSpring":50001000,"beamLimitDamp":10000},
        ["ra6r","ab1r", {"dampCutoffHz":500}],
        ["ra6l","ab1l", {"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //suspension shape
            {"triangleType":"NONCOLLIDABLE"},
            {"dragCoef":2},
            ["ra6r","rl1r",  "ra2r"],
            ["ra4", "ra6r", "ra2"],
            ["ra6r", "ra4", "rl1r"],
            ["ra4", "ra1", "rl1r"],
            ["ra6r", "ra2r", "ra2"],

            ["rl1l", "ra6l", "ra2l"],
            ["ra6l", "ra4", "ra2"],
            ["ra4", "ra6l", "rl1l"],
            ["ra1", "ra4", "rl1l"],
            ["ra2l", "ra6l", "ra2"],
            {"triangleType":"NORMALTYPE"},
    ],
    "pressureWheels": [
            ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
            //cancel out brake properties
            {"brakeTorque":0},
            {"parkingTorque":0},
            {"enableBrakeThermals":false},
            {"brakeDiameter":false},
            {"brakeMass":false},
            {"brakeType":false},
            {"rotorMaterial":false},
            {"brakeVentingCoef":false},
    ],
},
"Zil130_wheeldata_R_1": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Rear Spindles",
        "value":0,
    },
    "slotType" : "Zil130_wheeldata_R_1",
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //rear
        {"selfCollision":false},
        {"collision":true},
        {"wheelOffset":-0.255},
        {"axleBeams":["axle_RR1_1"]},
        ["RR1", "wheel_RR1", "tire_RR1", "rh1rr", "rh1r", 9999, "ra2r", 1, {"torqueCoupling:":"ra2", "torqueArm:":"ra1", "torqueArm2:":"rh1rr"}],
        {"axleBeams":["axle_RL1_1"]},
        ["RL1", "wheel_RL1", "tire_RL1", "rh1ll", "rh1l", 9999, "ra2l", -1, {"torqueCoupling:":"ra2", "torqueArm:":"ra1", "torqueArm2:":"rh1ll"}],
        //disable outer wheel brake
        {"brakeTorque":0},
        {"parkingTorque":0},
        {"enableBrakeThermals":false},
        //
        {"wheelOffset":0.075},
        {"axleBeams":["axle_RR2_1"]},
        ["RR2", "wheel_RR2", "tire_RR2", "rh1rr", "rh1r", 9999, "ra2r", 1, {"torqueCoupling:":"ra2", "torqueArm:":"ra1", "torqueArm2:":"rh1rr","wheelAngle":7.5}],
        {"axleBeams":["axle_RL2_1"]},
        ["RL2", "wheel_RL2", "tire_RL2", "rh1ll", "rh1l", 9999, "ra2l", -1, {"torqueCoupling:":"ra2", "torqueArm:":"ra1", "torqueArm2:":"rh1ll","wheelAngle":7.5}],
        {"brakeTorque":0},
        {"parkingTorque":0},
        {"triangleCollision":false},
        {"selfCollision":true},
        {"axleBeams":[]},{"disableMeshBreaking":false,"disableTriangleBreaking":false},
        {"enableHubcaps":false},
        {"enableTireLbeams":false},
        {"enableTreadReinfBeams":false},
        {"enableTireReinfBeams":false},
        {"enableTreadReinfBeams":false},
        {"enableTirePeripheryReinfBeams":false},
        {"loadSensitivitySlope":""},
        {"noLoadCoef":""},
        {"fullLoadCoef":""},
        {"frictionCoef":""},
        {"slidingFrictionCoef":""},
        {"softnessCoef":0.5},
        {"treadCoef":1.0},
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["differential", "differential_RL", "differential_R_1", 1, {"diffType":"dually", "gearRatio":1, "lockTorque":1000000, "friction":17.9, "dynamicFriction": 0.033, "uiName":"Front Rear Left Dually Hub","defaultVirtualInertia":2}],
        ["differential", "differential_RR", "differential_R_1", 2, {"diffType":"dually", "gearRatio":1, "lockTorque":1000000, "friction":17.9, "dynamicFriction": 0.033, "uiName":"Front Rear Right Dually Hub","defaultVirtualInertia":2}],
        //rear left axle outer
        ["shaft", "wheelaxle_RL1", "differential_RL", 1, {"connectedWheel":"RL1", "breakTriggerBeam":"axle_RL1_1", "uiName":"Front Rear Left Axle", "friction":1}],
        //rear left axle inner
        ["shaft", "wheelaxle_RL2", "differential_RL", 2, {"connectedWheel":"RL2", "breakTriggerBeam":"axle_RL2_1", "uiName":"Front Rear Left Axle", "friction":1}],
        //rear right axle outer
        ["shaft", "wheelaxle_RR1", "differential_RR", 1, {"connectedWheel":"RR1", "breakTriggerBeam":"axle_RR1_1", "uiName":"Front Rear Right Axle", "friction":1}],
        //rear right axle inner
        ["shaft", "wheelaxle_RR2", "differential_RR", 2, {"connectedWheel":"RR2", "breakTriggerBeam":"axle_RR2_1", "uiName":"Front Rear Right Axle", "friction":1}],
    ],
},
"Zil130_spring_R_1": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Rear Airbags",
        "value":300,
    },
    "slotType" : "Zil130_spring_R_1",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["Zil130_leaf_R_1", ["Zil130_leafbase_R_1","Zil130_leaftop_R_1"]],
        ["Zil130_airbag_R_1", ["Zil130_airbagtop_R_1","Zil130_leafbase_R_1"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$airbag_R1_pressure", "range", "psi", "Suspension", 25, 0, 120, "Airbag Pressure", "Starting Pressure of the Airbag", {"stepDis":0.5, "subCategory":"Rear"}],
    ],
    "airbagBeamData": [
        ["beamName", "groupName"],
        ["airbag_RL1", "rearAxle"],
        ["airbag_RR1", "rearAxle"],
    ],
    "beams": [
        ["id1:", "id2:"],
        //--REAR AIRBAGS--
        {"beamPrecompression":1.0, "beamType":"|PRESSURED"},
        {"beamSpring":100,"beamDamp":0,"beamDeform":100000,"beamStrength":250000},
        {"beamLimitSpring":0,"beamLimitDamp":0},
        //airbags
        {"breakGroup":"airbag_R1_break"},
        {"breakGroupType":1},
        ["ra6l","ab1l", {"pressurePSI":"$airbag_R1_pressure","surface":0.024,"volumeCoef":3.5,
            "name":"airbag_RL1","soundFile":"event:>Vehicle>Suspension>Zil130_01>spring_compress_01","colorFactor":0.0,"attackFactor":10,"volumeFactor":8,"decayFactor":3.5,"noiseFactor":0.01,"pitchFactor":0.2,"maxStress":20}],
        ["ra6r","ab1r", {"pressurePSI":"$airbag_R1_pressure","surface":0.024,"volumeCoef":3.5,
            "name":"airbag_RR1","soundFile":"event:>Vehicle>Suspension>Zil130_01>spring_compress_01","colorFactor":0.0,"attackFactor":10,"volumeFactor":8,"decayFactor":3.5,"noiseFactor":0.01,"pitchFactor":0.2,"maxStress":20}],
        {"breakGroupType":0},
        {"breakGroup":""},
        {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
},

"Zil130_spring_R_1_lifted": {
    "information":{
        "authors":"BeamNG",
        "name":"Lifted Front Rear Airbags",
        "value":500,
    },
    "slotType" : "Zil130_spring_R_1",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["Zil130_leaf_R_1", ["Zil130_leafbase_R_1","Zil130_leaftop_R_1"]],
         ["Zil130_airbag_R_1", ["Zil130_airbagtop_R_1","Zil130_leafbase_R_1"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$airbag_R1_pressure", "range", "psi", "Suspension", 25, 0, 120, "Airbag Pressure", "Starting Pressure of the Airbag", {"stepDis":0.5, "subCategory":"Rear"}],
    ],
    "airbagBeamData": [
        ["beamName", "groupName"],
        ["airbag_RL1", "rearAxle"],
        ["airbag_RR1", "rearAxle"],
    ],
    "beams": [
        ["id1:", "id2:"],
        //--REAR AIRBAGS--
        {"beamPrecompression":1.0, "beamType":"|PRESSURED"},
        {"beamSpring":100,"beamDamp":0,"beamDeform":100000,"beamStrength":250000},
        {"beamLimitSpring":0,"beamLimitDamp":0},
        //airbags
        {"breakGroup":"airbag_R1_break"},
        {"breakGroupType":1},
        ["ra6l","ab1l", {"pressurePSI":"$airbag_R1_pressure","surface":0.032,"volumeCoef":3.5,
            "name":"airbag_RL1","soundFile":"event:>Vehicle>Suspension>Zil130_01>spring_compress_01","colorFactor":0.0,"attackFactor":10,"volumeFactor":3,"decayFactor":10,"noiseFactor":0.01,"pitchFactor":0.2,"maxStress":20}],
        ["ra6r","ab1r", {"pressurePSI":"$airbag_R1_pressure","surface":0.032,"volumeCoef":3.5,
            "name":"airbag_RR1","soundFile":"event:>Vehicle>Suspension>Zil130_01>spring_compress_01","colorFactor":0.0,"attackFactor":10,"volumeFactor":3,"decayFactor":10,"noiseFactor":0.01,"pitchFactor":0.2,"maxStress":20}],
        {"breakGroupType":0},
        {"breakGroup":""},
        {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
},
"Zil130_shock_R_1": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Rear Shocks",
        "value":900,
    },
    "slotType" : "Zil130_shock_R_1",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["Zil130_shock_R_1", ["Zil130_leafbase_R_1","Zil130_leaftop_R_1","Zil130_airbagtop_R_1"]],
    ],
    "beams": [
         ["id1:", "id2:"],
         //--REAR SHOCKS--
         {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1, "beamShortBound":1},
         {"beamSpring":0,"beamDeform":200000,"beamStrength":350000},
         {"beamLimitSpring":0,"beamLimitDamp":0},
         //rear shocks
         {"breakGroup":"airbag_R1_break"},
         ["ra6r","ab1r", {"beamDamp":17000,"beamDampFast":5500,"beamDampRebound":33000,"beamDampReboundFast":11000,"beamDampVelocitySplit":0.25,"dampCutoffHz":250}],
         ["ra6l","ab1l", {"beamDamp":17000,"beamDampFast":5500,"beamDampRebound":33000,"beamDampReboundFast":11000,"beamDampVelocitySplit":0.25,"dampCutoffHz":250}],
         {"breakGroup":""},
         {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
},
}