Electric motor thermal simulation?

Discussion in 'Mod Support' started by Swervz, Apr 15, 2018.

  1. Swervz

    Swervz
    Expand Collapse

    Joined:
    Mar 17, 2013
    Messages:
    30
    Just wondering if there is any thermal simulation for electric motors already in the game, heating when under load, winding damage, etc. If not what are the relevant apis to script it in lua?
     
  2. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Hey,

    ICEs are the only engines that have a thermal simulation in the game at this point. Not sure what specific APIs you are asking for, you'd need to create a new powertrain device that actually cares for thermals. Take a look at the existing ones to get an idea.
     
  3. Swervz

    Swervz
    Expand Collapse

    Joined:
    Mar 17, 2013
    Messages:
    30
    Thanks for replying.

    I'm looking at combustionEngine.lua combustionEngineThermals.lua I would want to create something like combustionEngineThermals for the electric motor but simulating what happens with an electric motor instead of an ICE. How is combustionEngineThermals used by combustionEngine exactly?
     
  4. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    It's just a secondary file to somewhat keep down the amount of code in one file. You could easily just as well put everything into a single powertrain device file.
     
  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