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 › a fly around
Page Index Toggle Pages: 1
a fly around (Read 604 times)
a fly around
Jul 18th, 2009, 2:54am
 
Hi there,
I would like to imitate the path of a fly (says a form) around an object, knowing that the object is at the center of the window, I am trying to make the fly going faster as it fly to the object and slower as it pass by it toward the limit of the window. The fly must never touch the object and then find its trajectory considering its speed and its ability to change its direction, as it goes faster the angle of of its path is restricted but as it goes slower the angle increase.
I found that difficult to do so I am asking you here if you have any idea.
Here is a drawing that could illustrate what I need,
idoia.com/fly.png
Thanks in advance.
Re: a fly around
Reply #1 - Jul 18th, 2009, 3:18am
 
It reminded me some old thread: getting the direction of a moving point
This program used Traer physics to handle the attraction forces.
Maybe it can be an interesting starting point.
Page Index Toggle Pages: 1