Gravity Simulator

Sangil Lee

This is an application to simulate particles’ movement under Newton’s law of universal gravitation. Particles attract each other, and then they are collided and merged or orbit the center of mass. Some particles can fade away toward the horizon of the universe. I designed and implemented the application during my half-year break from university.

Snapshot

snapshot of gravity simulator

Usage

Left click: Create object
Drag: Create an object with initial velocity
Right click: Create a black hole at that point
Middle click: Move viewpoint
Scroll: zoom in/out
Left click on the object: Anchor the object to the center of view

Download

ID/PW: guest/admin

Source code

will be published shortly after fixing a minor bug that occurs at the termination of the program.