Bar magnet — bar magnet field simulation
A bar magnet rides the cursor and rotates with cursor velocity. Iron filings align to the dipole field and drift toward the nearest pole.
How it works
Bar magnet at the cursor; rotates with cursor velocity.
Fine filings align to the dipole field and drift along their aligned axis toward the nearest pole; speed ∝ field strength. Filings absorbed at the magnet respawn at a random screen edge — continuous inflow.