Basically I should add a field class which spits out force at that particular area of the field, and pass that force and move the particle according to that, adding different force factors could be nice. particle can vary the velocity according to the force factor which is between magnetic fields and magnet. hence, simulating the magnetic field, more; convert it to 3d, and for future make the magnet variance loop, more than one and experiment the movements of the particles.
Source code: ma1 Vector3D field magnet particle
Built with Processing