asankasovis / 02.-gravity-simulation Goto Github PK
View Code? Open in Web Editor NEWI 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.
License: Creative Commons Zero v1.0 Universal