Description
Introduction
This project is a 2D gravity simulation where objects interact based on gravitational forces. Users can add objects and observe their interactions, providing insights into gravitational dynamics.
Implementation
The project simulates gravitational interactions between objects using Newton's law of universal gravitation. It uses p5.js for rendering and allows users to add objects dynamically. The simulation includes features like future position prediction and visualization.
What I Learned
I gained a deeper understanding of gravitational physics and how to simulate them programmatically using Newtonian integration methods. I also learned how to implement interactive features and visualize complex systems in 2D.
Instructions:
- • R: Randomize Objects
- • Mouse Click: Insert Objects