Garry's Mod

Garry's Mod

197 ratings
Magnet Dipole Tool
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
49.598 KB
27 Dec, 2014 @ 9:25am
14 Jan, 2023 @ 5:05am
11 Change Notes ( view )

Subscribe to download
Magnet Dipole Tool

In 1 collection by [Sk$Bh]Trick or treat KID!
DVD's addon collection
255 items
Description


Description
This addon can give you the ability to have have an entity that
simulates real magnets with real north and south poles not like
the old magnetize tool. The simulation is calculated according to
Gilbert's model [en.wikipedia.org] when both poles are small enough to be represented
as single points in space where the fore equation is used from the
classical mechanics to improve overall TOOL:Think() hook performance.

Feature List
  • Supports and controlled by wire
  • Customizable poles location
  • Works with advanced duplicator 1 and 2
  • Dedicated numpad control
  • When connected wire inputs override internal values
  • New and recent code-base in tone with GMOD 13
  • Ability to change the model on the fly ( filtered )
  • Ability to replace a trace entity with itself
  • Ability to update a dipole with left click entity class
  • Logging is available ( turn off by default )
  • Maximum value control setup tweaks are available
  • Adjustable search radius for magnets and ferromagnets

Q: It won't spawn dude, help !
A: Em, Use right click to select a model filter

Q: What are those OBB Offsets?
A: Local vector defining the positions of the poles relative to the OBB center.

Q: I get the other things, but what is that search radius all about?
A: When this thing is greater than 0, you have active magnet, which means that it is searching for other SENTs of the same class and calculating some forces on its poles, set this to 0 to get a passive ( non-searching magnet dipole).
Beware, that the active dipoles will still find the passive AND active ones IF THEY ARE WITHIN their search radius, dependant by their own data.

For detailed manual, please refer to readme.md

Readme: https://github.com/dvdvideo1234/MagneticDipole/blob/master/readme.md

Git repository: https://github.com/dvdvideo1234/MagneticDipole

Report errors to: https://github.com/dvdvideo1234/MagneticDipole/issues

Reuploading and source stealing will not be tolerated !
Please respect the Original author for creating this addon and
me for fixing it to Gmod 13 version coding style !
Selling it is also out of option, as the open source suggests !

If you want to support me and you like what I do:

paypal.me/DeyanVasilev
26 Comments
[Sk$Bh]Trick or treat KID!  [author] 26 Dec, 2022 @ 10:43am 
@Dragon Dad Villaro 21 Dec @ 7:05pm

Sure you can but yu have to control it via Wire.
Dragon Dad Villaro 21 Dec, 2022 @ 9:05am 
could one possibly make a railgun using this
[Sk$Bh]Trick or treat KID!  [author] 7 Jun, 2021 @ 9:46pm 
Wealy 4 Jun, 2021 @ 2:02pm 
How do I use this?
[Sk$Bh]Trick or treat KID!  [author] 8 Oct, 2018 @ 10:01am 
I have it ported from Gmod 12 to my personal "LEGACY" tool repo:

https://github.com/dvdvideo1234/GmodLegacyTools
nocss 5 Oct, 2018 @ 12:19pm 
can someone link me to the magnetize tool

[Sk$Bh]Trick or treat KID!  [author] 3 Jul, 2017 @ 10:34am 
@Tapmemer 4 hours ago
Yes, the bounding box center, not the mass center, because the BB center is the prop's geometrical center and the mass center is not :P
[Sk$Bh]Trick or treat KID!  [author] 3 Jul, 2017 @ 4:22am 
@Tapmemer 19 hours ago
No the bounding box center is the center of the parallelogram which can contain the model inside.It is usually different than the mass center and the position of the prop
[Sk$Bh]Trick or treat KID!  [author] 4 Jul, 2016 @ 1:30pm 
Click on the arrow on top to save a ZIP. Extract it to a temporary folder ( Extract here )
Copy the "LegacyTools" folder inside addons. Done .
LIEUTENANT TOAST 4 Jul, 2016 @ 12:16pm 
how do i install these