Electromagnets

If you liked this item, please rate it up on Steam Workshop page.

Author: TechnologicNick

Last revision: 14 Sep, 2018 at 18:28 UTC

File size: 2.11 MB

On Steam Workshop

Description:
This mod adds an electromagnet.

When powered, it attracts other powered electromagnets. It’s strength increases exponentially when the distance to the other electromagnet decreases.

If you have problems with magnets shooting in all directions, try to add more weight to them!

NOTE: This only works in the test branch! (0.3.0)

UPDATE 1:

  • The strength of an electromagnet can now be changed by powering it using an engine.
    This makes it easier to attract objects with a lower mass.
  • Added a polarity.
    The magnets now has 3 modes, which you can cycle through by pressing [E].
    – The mode with the magnet symbol attracts all other electromagnets.
    – The north mode with the ‘N’ symbol attracts all other electromagnets with a ‘S’ symbol, and repels all other electromagnets with a ‘N’ symbol.
    – The south mode with the ‘S’ symbol attracts all other electromagnets with a ‘N’ symbol, and repels all other electromagnets with a ‘S’ symbol.
  • Updated the icon to match the part.

UPDATE 2:

  • The visuals should now work for multiplayer. (Although I haven’t tested this)

UPDATE 3:

  • Changed the physicsMaterial to reduce particles. (Thanks to kAN Gaming for showing me this)
  • When a magnet is connected to a Driver’s Seat, it is powered when you enter the seat.
  • Updated the script to now work with Build 374. (7th July, 2018)

TODO:

  • Add engine sounds when the electromagnets are powered by engines.
  • Output some signal (I don’t know what yet) to make it easier to let things hover.
  • Reduce collision sounds.
  • Update the icon to match the part.
  • Add a polarity. (I am not able to save the polarity at the moment)
  • Allow an engine to power the electromagnets.

Thanks to Brent Batch and DasEtwas for helping me with the forces
and thanks to Xesau for helping me with storing the mode.