A little while ago i made a gravity simulator using pygame and math module in python and this video explains how it works. It's a simple 2d gravity simulator project in python.
pygame documentation:-https://www.pygame.org/docs/
Gravity simulator:-https://github.com/Kirankumar555/Grav...