NOC: Class 03

Class 03  |  Oscillation|  Polar Roses  |  Example


Class 03  |  Design a creature with oscillating parts (legs, wings, antennae, etc.) Consider tying the speed of oscillation to the speed of the creature's linear motion. Can you make it appear that the creature's internal mechanics (oscillation) drive its locomotion?

I decided to experiment on Polar Roses for this week assignment.

info: Link          |          Tutorial: Link


Once I’ve brushed up on my trigonometry and understood to a certain level on how to implement its logic with code, I played around with rotation and sin, cos and their abilities to manipulate shapes.

I wanted to make a pattern generator creating a generative pattern from this algorithm.

I think my question is I couldn’t successfully get the object to attract each other and I don’t know why it’s not working. I tried to get the mover’s object(flower) to animate according to the attractor’s radius(circle in the middle). The circle would be getting bigger and smaller in the middle.

 

EXPERIMENT 01


EXPERIMENT 02


NOC: Class 02


What I planned to achieve this week is to add 2 functions in terms of FORCES are: 

1. Press + hold a mouse, all the mover particles would come rushing to the attractor. 

2. Once release the mouse, all the mover particles dispersed outwards. 

I tried to experiment with when all the movers particles are all close/attracted to the attractor would dispersed outward really fast and vice versa.

I got really confused with the parameters of the object thats within a function. For example, from the example code below. 

Example Code Chapter 2.6: Attraction.  >>> Link to Code <<<

 I mean it just randomly appeared. There is no declaration of “m” anyway. I understand that its a callback function and what it’s really doing is hold a value and pass it…..right? 

 

At first I tried adding a mousePressed() function to get me started on the no.1 feature I want to get "Press + hold a mouse, all the mover particles would come rushing to the attractor. ".