Verlet Integration - Minimal Example - can anyone help me understand this ?

edited January 2015 in How To...

I've been going through Processing 2nd Edition and I'm not getting how to use Verlet Integration. I kind of get what it's meant to be doing, but I'm trying to write a basic example without all the OOP and stuff and I'm struggling to think it through. A lot of people are referencing timestamps in tutorials from Google search.

here's a screenshot of the formula

So the outline of my code is :

Two ellipses, a line joining them up.

I don't know how to write out the pseudo code for verlet.

Looking at the screenshot equation I can get bit's of it, I can see that the magnitude is the distance from the origin, though whether that relates to the top left or a translation of some sorts when implemented into Processing I'm not sure.

Can anyone help me go through this please?

cheers

Sign In or Register to comment.