Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

This repo contains the Python implementations of various 10 minute physics simulations.
There are two versions of each simulation:

  • A Python version that implements physics from scratch using numpy and using Pygame for visualizations.
  • A second Python implementation that leverages Pymunk's Physics engine.

For all simulations present in this repo, we have the following keyboard controls:

  • 'R' to reset the simulation.
  • 'D' to enter Physics debug mode (for Pymunk versions only)

It contains the following simulations:

1. Cannonball

To run the cannonball simulation: "python cannonball2d.py" or "python cannonball2d_pymunk.py".

Demo: Demo

2. Billiard

To run the cannonball simulation: "python billiard.py" or "python billiard_pymunk.py".
Use the keyboard ↑/↓ arrows to change coeffecient of restitution between the balls.

Demo: Demo

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages