I recreated the 'follow the mouse' effect made in class. I figured out how to do this by drawing an image on paper of the process, and then working out the necessary equation.
The distance is calculated using by adding a percentage of the distance between the new mouse position and the previous mouse position
I'd like to include this in my final design as a way for the objects to follow behind the mouse. It makes it feel less controlled.
Follow - Open Processing Link |
No comments:
Post a Comment