Solved AWD with disconnectable front axle

Discussion in 'Mod Support' started by Passat Alltrack, Feb 8, 2020.

  1. Passat Alltrack

    Passat Alltrack
    Expand Collapse

    Joined:
    Jun 7, 2016
    Messages:
    50
    Hey, I'm trying to make a awd system that is locked to the rear axle all the time and has a viscous coupling at front like a haldex in reverse. And I have managed to do this in this jbeam
    Code:
    "etk_transfer_case_drift_AWD": {
        "information":{
            "authors":"VagBoi",
            "name":"Haldex AWD rwd biased (drift)",
            "value":900,
        },
        "slotType" : "etk_transfer_case",
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["splitShaft", "transfercase", "gearbox", 1, {"splitType":"viscous", "primaryOutputID":1, "viscousCoef":40, "viscousTorque":300, "friction":5, "uiName":"Viscous Torque Splitter","defaultVirtualInertia":0.1}],
        ],
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_transfercase", ["etk_transmission","etk_engine"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //--tcase weight--
             {"selfCollision":false},
             {"collision":false},
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"etk_transmission"},
             {"nodeWeight":36},
             ["tcase", 0.13, -0.43, 0.33],
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":1500600,"beamDamp":60},
              {"beamDeform":30000,"beamStrength":"FLT_MAX"},
              ["tcase","e1r"],
              ["tcase","e3r"],
              ["tcase","e1l"],
              ["tcase","e3l"],
              ["tcase","tra1"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    However I want to have thge ability to disconnect the front axle for pure rwd when wanted. I have spent hours playing around with the code trying to make it work. Most of the time the button for disconnecting does not even appear or it appears outside of the awd system and does nothing.
    This is the code I have been playing around with.
    Code:
    "etk_transfer_case_traction_AWD": {
        "information":{
            "authors":"VagBoi",
            "name":"Haldex AWD with selective rwd",
            "value":900,
        },
        "slotType" : "etk_transfer_case",
        "controller": [
            ["fileName"],
            ["4wd", {"shaftName":"driveshaft_F"}],
        ],
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            //haldex diff
            ["splitShaft", "transfercase", "gearbox", 1, {"splitType":"viscous", "primaryOutputID":1, "viscousCoef":4, "viscousTorque":1500, "friction":5, "uiName":"Viscous Torque Splitter","defaultVirtualInertia":0.1}],
            //disconnecting front shaft
            ["shaft", "torsionreactorF", "driveshaft_F", 2, {"canDisconnect":true, "friction":0, "uiName":"Front Output Shaft"}],
        ],
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_transfercase", ["etk_transmission","etk_engine"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //--tcase weight--
             {"selfCollision":false},
             {"collision":false},
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"etk_transmission"},
             {"nodeWeight":36},
             ["tcase", 0.13, -0.43, 0.33],
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":1500600,"beamDamp":60},
              {"beamDeform":30000,"beamStrength":"FLT_MAX"},
              ["tcase","e1r"],
              ["tcase","e3r"],
              ["tcase","e1l"],
              ["tcase","e3l"],
              ["tcase","tra1"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    I can of course just use the normal 4wd with a locked diff, but then you don't get the awd rally handling that I want with the axle connected.

    Okayed i suddenly figured it out. Removed the front driveshaft now and it works.
     
    #1 Passat Alltrack, Feb 8, 2020
    Last edited: Feb 8, 2020
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice