The idea is to stop all the connectors that are on the same side of the shapes from crumbling into each other.
And it should look like this:
And the control behaviour that I am imagining is like this:
(Notice how it snaps to a point that is near, but not on the magnet.)
I hope this has conveyed my idea
Thank you for reading!