I think 2D will be enough.
The experiment is the one you can see on this movie
So, moving trajectory in fixed direction.
The speed of the marble can be changed.
The place where we put the magnet can be changed as well.
Is it better described like this or do you need any other details ?