Solved Powertrain device with two inputs

Discussion in 'Mod Support' started by aljowen, Jan 16, 2019.

  1. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Its been asked before, but maybe something has been added or changed in an update.

    Is there any powertrain devices that can take two inputs, and combine them into one output?
     
  2. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    Not possible yet.
     
    • Agree Agree x 1
  3. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Damn :/
    (Not sure I have the knowledge to write a custom powertrain device to do it either)

    Thanks :)
     
  4. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    I have been trying to do it and Diamondback was going to ask Goosah whether it was possible
     
  5. RobertGracie

    RobertGracie
    Expand Collapse

    Joined:
    Oct 15, 2013
    Messages:
    3,780
    I think its possible to do that but you need to shut down one side of the powertrain, while using the other motor thats the limit at the moment, its like with a hybrid mod that came out with the ETK800 series and the DH40L bus thats what I am aware of at the moment
     
  6. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    You could probably do it with some trickery, but the powertrain framework is not made to support this. The technical issue would be to get the order of execution right so that both input device update before the other one.
     
    • Informative Informative x 2
  7. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    So new electric SBR4 in pictures has two electric motors connected to one diff unit, how that works out?
     
  8. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I would imagine:
    • 1 motor drives front wheels
    • 1 motor drives rear wheels (with power figures to simulate the two rear motors)
    However, given the size of the battery pack, I doubt they will get too many km done before needing a recharge :p


    EDIT:
    I should add that on the R60 I did it with a single motor and had that driving all 4 wheels (despite it actually having separate front and rear motors on the 3d model). So that is also a possibility, since it solves any vehicle controller issues around having multiple drivetrains. But I am assuming that they are going to do it "properly".
     
    #8 aljowen, Jan 16, 2019
    Last edited: Jan 16, 2019
    • Agree Agree x 1
  9. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Probably fuel tank is going to be replaced with battery pack too, I hope, then again we total car under 30km anyway :D
     
  10. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    When I looked at the drivetrain code, it did look rather one way in its design, so I was hoping for the best, but not expecting it :p

    The reason I wanted this capability is because the sports car that I am making does have space in the back for a small electric motor, as well as space elsewhere for about 20kw worth of batteries. Meaning weight distribution is still fine.
    So I was thinking an automatic hybrid version could be neat, where the electric motor has its own clutch pack and is connected to the rear diff. It could then deliver power up to about 60-70mph, then disengage at higher speeds via its clutch. Meaning a small engine could be used with some interesting gear ratios to get good performance and economy.

    But if its not possible then that is fine, just means that only manual ICE variants will be available :D (and saves me a lot of time :p)
     
  11. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    I wonder if you could implement emotor so that it kinda replaces driveshaft or is between engine and gearbox, engine has input and output after all. It can be then freely spinning above certain speed.
     
  12. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Just gave it a try and it doesn't seem to be down with that idea, as well as many other things breaking. It would also seem that the engine rpm sound becomes tied to the camera position relative to the car. Which is interesting, I guess... ? :p



    (note: in the video the powertrain tree is inaccurate, since it doesn't update once the powertrain is configured due to it being broken)

    It would also seem that sound doesn't go away until the game is rebooted :/ xD
     
    • Like Like x 2
  13. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,710
    Actually, if there are two motors at the rear, one for each rear wheel... what's the point of having a differential there? If you use a diff, it's just added weight, along with the fact that it would lose the ability to use torque vectoring. Honestly, each motor is probably just connected with a driveshaft to each wheel. Same as in the powertrain code I would assume.
     
    • Like Like x 1
  14. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    That's a good point actually. Although less motors does equal less work to do, and less CPU usage.

    That idea has peaked my interest though. I'm honestly not sure how much of an effect torque vectoring can have on a road vehicle, would be interesting to find out.

    For off road vehicles I would guess it is less interesting, since you can't send more than 25% of the vehicles total torque to any corner. Whereas one motor at either end with braking or a diff doing the vectoring would allow for 50%. Not sure if that matters to most off roading situations outside of rock crawling though.
     
    • Like Like x 1
  15. SebastianJDM

    SebastianJDM
    Expand Collapse

    Joined:
    Apr 9, 2017
    Messages:
    856
    you never really want a hybrid vehicle to have the electric motor at the rear, since you want regenerative braking to be a thing you can utilize. having the regenerative motor on the rear wheels can either cause the car to handle extremely unpredictably when "engine braking", or you'd have to set the regeneration so low (or disable it completely) that it isn't very much worth it. the front wheels is where the motor should be, to maximize weight transfer, and reduce lift-off oversteer.

    now, this may not apply entirely in beam, but it would be nice to keep some form of realism present. the instant torque of the electric motors is pretty good for the front wheels in an AWD setup anyway, since all that torque is available whenever you want it, to claw the car out of a corner and launch away at speed.
     
    • Like Like x 1
  16. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Yeah, I am aware of this. The plan was not to subatantially use regenerative braking. Instead it was to be a plug in hybrid, with the electric motor being used like a turbocharger to provide extra power on acceleration under the speed limit. Giving a 150hp petrol engine plenty of additional umph when it needed it. The petrol engine would handle continuous loads. Then if the battery gets very low, it would be charged by the petrol motor when cruising at a continuous speed. Since they would have both been on the same drivetrain, it could be used like an alternator.

    So it would have been less suited to continuous thrashing since it would run out, but very well suited to drivers who like to occasionally drive in a spirited Manor, but also wish to achieve decent mpg on normal driving.

    There is space in the front for a motor, but no place for the axel to get to the wheels. Since there is chassis and suspension in the way.
     
  17. SebastianJDM

    SebastianJDM
    Expand Collapse

    Joined:
    Apr 9, 2017
    Messages:
    856
    then it should be fine, i would recommend a large but flat battery pack underneath the trunk carpet (where you'll sometimes find a spare tire in a lot of cars), so as not to sacrifice cargo volume or passenger volume. since it's a hybrid, it should pack more than enough of a punch while supplying a sufficient enough amount of energy to last during city driving. theoretically, it could be electronically controlled with different driving modes (sport uses it a bit like the F1 hybrid system, eco uses it more for fuel economy when driving at a continuous speed, etc.). for sport mode, it could supply full torque at low speeds to rocket a car out of tight corners, and it could provide small amounts of power during certain specific situations. also torque vectoring would be cool for a dual-motor setup. also, during normal driving and stuff i'm sure the vehicle would benefit during hilly driving conditions, since 150hp isn't much for heavy traffic on the slopes of WCUSA.

    research how the honda insight or CR-Z hybrid system works, since they're like the only stick shift hybrid vehicles. then you might have a torquey purist sports car that would get people to actually enjoy electric/hybrid cars. 150-200 hp is the sweet-spot for a lightweight sports car i'd say, but lots of americans may disagree :p
     
  18. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,710
    I feel an electric off roader is necessary for testing as I also don't know how it would do either... I know on road its very very useful... offroad though? No idea.
     
  19. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Recharging in woods might be experience I do not wish to have.
     
    • Like Like x 1
  20. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    It would have been automatic. With the R60 I got a few complaints that there were no automatic versions, so my plan was to have a 300hp V6 manual, a 220ish hp I4 turbo manual, and then have the hybrid as the automatic version. The reason I wanted the electric motor mounted at the rear of the vehicle is so that it does not go through the gearbox, that way it can still deliver power when the automatic is changing gears. This is why the electric motor would be geared to disengage at roughly 70mph (via clutch pack), since if it was geared to be active at 140mph, it would give half as much torque to the wheels at 70mph due to the ratio. 150hp engine + 150hp motor is 300hp when the "electrocharger" is active. So it would have been just as fast as the V6, but with far better economy.

    But none of that really matters at this point anyway, its just not possible to do in game. And I don't think its possible to get a convincing facsimile through any other "cheating" method.
     
    • Informative Informative x 1
  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