In this exhibit, you will see the effect of gravity on the trajectory of various objects in the space. Along with the effect of such gravity, you will also see, how meteors carry their own graivty and change the path of other objects in the space.
Click anywhere in the exhibit to see generate a new object and observe it's path !
Here is the p5js editor link -- view code