An open API service indexing awesome lists of open source software.

https://github.com/kahngjoonkoh/physics_simulator

Simulates graviational forces, circular motion, and momentum conservation.
https://github.com/kahngjoonkoh/physics_simulator

pygame simulator

Last synced: 23 days ago
JSON representation

Simulates graviational forces, circular motion, and momentum conservation.

Awesome Lists containing this project

README

          

# Physics_Simulator
Simulates graviational forces, circular motion, and momentum conservation.

Individual values can be tweaked in the settings for preference.

Drag and let go of the mouse to create a sprite. The default value is 100 for the mass. (no units) Red line indicates the direction of motion and the initial velocity.
image
image
The created sprite is of random color and leaves a trail. (they disappear after a while, you can change it in the settings)

Can scroll the mouse wheel to increase or decrease volume.
image

While creating a sprite, if you type in a number, the created sprite will have such mass.
image

There is gravitational forces acting between sprites.
image

If they collide, there is momentum conservation.
image
image
Only the surviving sprite's trail is kept.

By creating a sprite while clicking "C" key, you can create a constant sprite. This means, the sprite will not move.
image

By creating a sprite and 'linking' it to a sprite, you can create circular motion.
image

You can create interesting motion such as
image
image

Pressing the "spacebar" will pause the motion of the sprites.

"R" will randomly generate a situation.
image

"Q" will clear the screen.

Use the conventional "ASWD" keys to navigate. This feature is under development and is prone to errors at the moment.