This is a simulation based on Newton's law of universal gravitation. F=G * (m1 * m2) / r^2 You can change the radius, mass, and placement of the planet inside the project.
Use the Arrow keys to move the purple ball around the screen. The ball will be dragged to the planet according to gravity. HAVE FUN!