Recent content by account

  1. A

    Linear and angular spring simulation

    I prefer to calculate in polar coordinates because there is a problem with calculating \theta only from (x,y). For example if I use \theta=\mbox{atan2}(y,x) then if there is any oscillation outside of [-\pi,\pi] the angle will wrap around and strange things happen. Ok, I just tried that. If...
  2. A

    Linear and angular spring simulation

    Hello, I am trying to implement a simple simulation of a point mass connected to a linear and to an angular spring. I thought this would be very easy, basically just integrating these two equations: mr''=-k_l(r-L)-c_lr' m\theta''=-k_a(\theta-\alpha)-c_a\theta' These are in polar...
Back
Top