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?
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.
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?
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.