1. The BeamNG Team wishes everyone Happy Holidays!
    BeamNG team presence will be limited during the holiday season as we take the time off to rest and enjoy the holidays!
    There will be no mod support or mod approvals from 19th of December until 5th of January. Please expect delays during this period.
    We hope you enjoy the holidays too, see you in 2026!

Unsolved Is there a way to add a clutch to a drive shaft?

Discussion in 'Mod Support' started by ProgUn1corn, Dec 17, 2025 at 3:15 PM.

  1. ProgUn1corn

    ProgUn1corn
    Expand Collapse

    Joined:
    Apr 29, 2020
    Messages:
    32
    Hi, I'm trying to clutch to a shaft, that can be disconnect or not by a lua. However, I didn't find a powertrain component for this. The most similiar thing I could find is splitshaft, which contains a clutchRatio, however that has 1 inpurt and split into 2 outputs. I want something that has 1 input and 1 output. Is there any ideas?
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,588
    Any driveshaft can be disconnected, check on some of the offroad vehicles
     
  3. ProgUn1corn

    ProgUn1corn
    Expand Collapse

    Joined:
    Apr 29, 2020
    Messages:
    32
    Yeah, I know there is the device.mode = {"connected", "disconnected"}. However I'm wondering that if I could use a clutch method instead so I can control the usual lockSpring, lockTorque and clutchRatio stuff.

    Actually to further explain on this: I have a center LSD on a four wheel drive car. I would like to fully disconnect the front and rear axle, when some button is pressed. Although it worked 95%, I've found that even I set lockCoef and revCoef in Lua to 0, the front axle stil slows down by no reason.

    For example, when handbrake is pulled, although the rear axle is stopped immediately, the front axle will slowly decelerate to a point. However when using simple split shaft, the front can spin freely.

    I wonder if it's something to do with LSD, if the lockCoef is at 0 and no preload at all, the 2 output avDiff should be free as well. When I checked powertrain debug, when connected, outputAv1 and Av2 are 300, when the button like handbrake is pressed, the Av2 stopped to 0 immediately, but Av1 does not maintain 300, it will slowly decrease to 170. It's funny because no matter what gear I'm in, at the last it will always decrease to 170.

    I have a front and rear torque bias, but in the Lua I have set it to A=1 and B=0 when the button is pressed. I have checked that, no matter what torque bias I set, it will always be 170 at the last, so my Lua is correct, it does applied A=1 and B=0 but I have no Idea why that stopped at 170.

    Edit: after digging in the differentials.Lua, I've found there's a speedLimitCoef that isn't at 0 by default. I do not know what this does, but it appears that if I set this to 0, the front axle no longer stops.
     
    #3 ProgUn1corn, Dec 17, 2025 at 3:34 PM
    Last edited: Dec 17, 2025 at 3:54 PM
  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