Link to Design Journal
Journal Entry For
Module 2 - Ripples on a Pond
ACC Folder Link
Related to 120C/220C Students - Spring 2022 (1) (Related to Design Journal Entries | Winter 2022 (Linked Student))
- I started creating placement points with sliders to customize the number and space of cylinders.
- Next, I created sliders to control the X and Y coordinates of the first pebble. Then, I set a code to calculate the height value based on the distance between the placement point of each cylinder and the location of the first pebble. For this calculation, I applied the formula “Math.Sin(Distance * numberOfWaves) * waveAmplitude) + baseOffset”. Through some attempts, I figured out the values of variabilities to get nice look waves as the following figure shows.
- Next, I added a code to diminish wave height depending on the distance from the pebble. When the value of N is lower, the first wave where pebble dropped will be a steep wave. I found the value from 3 to 10 presents the moderate height of the first wave.
- Before the final step, I created 3 pebbles in the same way as pebble 1 but with different values of X and Y coordinates, wave amplitude, and N. Then, I got the 3 height values of 3 pebbles. In the final step, I summed their values and run the code to get the result.
Error: In the final output, I found some cylinders are missing. When I run with one pebble simulation, it did not happen, but more complex code returned more errors.