We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › looking for vector or force field examples
Page Index Toggle Pages: 1
looking for vector or force field examples (Read 901 times)
looking for vector or force field examples
Mar 9th, 2009, 2:37am
 
I know I have seen a simple sketch where the display window is populated with a grid of of points from which lines are drawn - vectors connecting each point with the position of the mouse cursor - but I can't seem to find it. Does anyone know of any sketches where there is a measurement between a grid of points and one or more attractor points, resulting in some effect, like the length or direction of a line starting from each point?
Re: looking for vector or force field examples
Reply #1 - Mar 9th, 2009, 10:55am
 
Well I made a game a while back that involved gravity points. So I just made a simple sketch for you: http://angeloyazar.phpwebhosting.com/processing/feild/index.html

Is that what you were  looking for?
Re: looking for vector or force field examples
Reply #2 - Mar 9th, 2009, 11:56am
 
This version implements multiple attractors: http://angeloyazar.phpwebhosting.com/processing/attractors/index.html
Re: looking for vector or force field examples
Reply #3 - Mar 9th, 2009, 4:35pm
 
Yes! those are great! they are exactly what I was after.
Re: looking for vector or force field examples
Reply #4 - Mar 9th, 2009, 10:21pm
 
Cool, I'm glad I could help.
Page Index Toggle Pages: 1