This is my first project. 10 ellipses will appear randomly on the canvas. Gravity and air friction are added to the ellipses. If you press the mouse, a force directing to the mouse position will be applied to the ellipses. The ellipses will move accordingly.
This is my second project. I added different resistance to simulate different media. I also altered the bouncing force of the top and bottom edge of the canvas to create different dynamics. The collision parameters of the ellipses are also changed to provide more momentum. Mouse press function still applies in this project as well.