Shun Hachisuka

image

Modeling approach

  • I started creating placement points with sliders to customize the number and space of cylinders.
image
  • 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.
image
  • 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.
image
  • 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.
image

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.

image