I created an interactive visualization in p5.js. It visualizes the trajectory followed by a particle in gravitational field.
You can add new gravitational source by clicking the Add source button in the bottom. A source can be deleted by selecting it and pressing the delete button.
Here is the source code for the
project.
If you like it, please leave a star in github :)
Top comments (0)