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 reddit.com/r/computergraphics

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • talent.io - Download talent.io’s Tech Salary Report
  • Scout APM - Truly a developer’s best friend
  • 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 collection of personal code (by aydencook03)

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

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today 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