For this project, I use a spring system to connect multiple balls first according to the requirement, simulating elastic interactions. Each spring applies a force based on Hooke’s Law, adjusting its length dynamically to create a natural oscillation. I spend a lot of time to ensure smooth motion, allowing the system to behave like a flexible and organic structure.
Then I want to combine this week’s assignment with what I learnt last week. I decided to ultilize math functions, so the movement of the balls controlled using sin() and cos(), combined with frameCount to create periodic oscillations. By modifying the cycle length dynamically, the system exhibits natural breathing-like expansion and contraction. This results in a visually appealing motion where the springs stretch and contract rhythmically, enhancing the dynamic effect.
After building a structure for my project(actually it takes a looooong time TT), I finely turn the simulation required careful tweaking of parameters such as spring stiffness, damping, and movement amplitude. Adjusting the spring constant k affected how strongly the balls were pulled together, while modifying the damping factor controlled the smoothness of motion, which makes my project look better.
One of the main challenges during the process was achieving a balance between smooth movement and stability. If the forces and springs were too strong, the system became overly chaotic. If they were too weak, and the motion was sluggish and less interesting. Through this process, I gained a deeper understanding of spring physics, force application, and optimizing visual effects for fluid motion.