From: Doug M. <dou...@gm...> - 2008-02-16 03:29:26
|
I'm new to Python and VPython, I'm impressed with what I've seen so far. Does anyone know of a Magnet simulation in Python? I would like to have bar magnets which would attract each other by their North / South poles. It would be cool to have them glued in position or able to move them around on a surface. That way you can move one magnet around and see how the others react to the one being dragged around. I've been looking through the stars.py for some hints on making this program. Coming from C#, I really love the fact that the python equations for gravity look very much like what I find on WikiPedia. But it is hard to give up on thinking about the gravity equations as a set of nested for loops iterating over arrays of vectors. Thanks for any help, Doug |