How to apply numerical integration on a graph layout

Posted by Cumatru on Game Development See other posts from Game Development or by Cumatru
Published on 2011-04-23T11:33:12Z Indexed on 2012/10/05 15:57 UTC
Read the original article Hit count: 527

Filed under:
|
|

I've done some basic 1 D integration, but i can't wrap my head around things and apply it to my graph layout. So, consider the picture below:

  • if i drag the red node to the right, i'm forcing his position to my mouse position
  • the other nodes will "follow" him, but how ?

For Verlet, to compute the newPosition, i need the acceleration for every node and the currentPosition. That is what i don't understand.

How to i compute the acceleration and the currentPosition ?

The currentPosition will be the position of the RedNode ? If yes, doesn't that means that they will all overlap ?

http://i.stack.imgur.com/NCKmO.jpg

© Game Development or respective owner

Related posts about physics

Related posts about 2d-physics