Magnets use magnetic forces in real time. Opposite poles snap together when close!
Drag magnets close — opposite poles attract and snap together. Same poles repel. Pull firmly to separate attached magnets.