1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Simulating the wigglyness of a compass pin

  1. Apr 28, 2014 #1
    Hey guys :)
    I'm working on a little bar magnet and compass simulation.
    You can see my progress here: https://dl.dropboxusercontent.com/u/47501509/fysik/kompasser-och-magnet/index.html [Broken]

    As the title states I want to make the compasses wiggle a bit like a compass would do naturally.

    What approach do you think I should take?
    Last edited by a moderator: May 6, 2017
  2. jcsd
  3. Apr 28, 2014 #2


    User Avatar
    Gold Member

    Simulate it like a damped spring or pendulum with the equilibrium position being magnetic north.
  4. Apr 28, 2014 #3
    Looking into that, thanks!
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook