What would be the best library to build 2D simulations in python?

This page summarizes the projects mentioned and recommended in the original post on /r/computergraphics

Our great sponsors
  • Mergify - Updating dependencies is time-consuming.
  • SonarCloud - Analyze your C and C++ projects with just one click.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Box2D

    Box2D is a 2D physics engine for games

    Do you mean drawing it or just the positions at each time step? Box2D has python bindings and would be ideal. https://box2d.org/

  • programming

    A mono-repo for programming ideas, experiments, and projects. (by aydencook03)

    Here I have a very simple example of using Pygame to draw a shape and turn it into an image.

  • Mergify

    Updating dependencies is time-consuming.. Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.

  • taichi

    Productive & portable high-performance programming in Python.

  • 2d-fluid-simulator

    2D incompressible fluid solver implemented in Taichi.

    I find it very useful for physical simulation and visualization. And personally I was impressed by a 2D fluid simulation project https://github.com/takah29/2d-fluid-simulator enabled by Taichi (Hope it can give you some inspiration as well). If you encounter any problems during implementation, you can consult its doc site (https://docs.taichi-lang.org/docs/) or even ask its creator u/yuanming-hu directly

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts