I created a Gravity Simulation in this code. Almost everything in the real world can be defined mathematically. And if you can define them mathematically, then that means that you can simulate it in a computer too. Gravity is the same. With some simple lines of code, we can create a working simulation of a bouncing ball.
Check the Blog Post that this repo is connected to.