DEV Community

loading...
Cover image for Trajectory lab - fun project in p5.js

Trajectory lab - fun project in p5.js

jithinks97 profile image Jithin KS Updated on ・1 min read

I created an interactive visualization in p5.js. It visualizes the trajectory followed by a particle in gravitational field.

See the visualization

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 :)

Discussion (0)

pic
Editor guide