Journal Entry For
Module 2 - Laws of Attraction
Link to Student
A WALK IN THE PARK
Image of Dynamo Geometry
Brief Overview of Model
The model includes to create a dynamic grid of cuboids with a sine wave ripple effect in Dynamo, follow these streamlined steps:
- Grid Creation and Cuboid Placement: First, generated a rectangular grid covering an area of approximately 200’ x 200’ using an integer slider to control the spacing between grid points. This grid will serve as the foundation for the cuboids, which represent the park’s ground surface. Each grid point acts as the origin for a cuboid, with width and length based on the spacing, and an initial height of 1.
- Attractor Point: Define an attractor point within the grid, which will serve as the center of the ripple effect. The position of this point can be adjusted using sliders for the X and Y coordinates.
- Setting Cuboid Heights: Calculate the height of each cuboid based on its distance from the attractor point. Use a formula incorporating the sine function to simulate undulating waves:
- Number of Waves: Frequency of waves as 2
- Amplitude: Maximum wave height as 10
- Base Height: Minimum height to ensure all cuboids remain above zero as 15
- Adjusting Cuboid Elevation: Once heights are calculated, move each cuboid so that their bases align at the same elevation. This is achieved by translating the cuboids vertically by half of their height using the Geometry.Translate node, ensuring uniform base elevation across the grid.
baseHeight + (amplitude * Math.Sin((cubeDistance/maxDistance) * 360 * numberOfWaves))
Introduce sliders to control:
By following these steps, a visually dynamic grid of cuboids is created, with each cuboid's height dynamically influenced by its distance from the attractor point, simulating a ripple effect across the park surface.