Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Do you mean drawing it or just the positions at each time step? Box2D has python bindings and would be ideal. https://box2d.org/
Here I have a very simple example of using Pygame to draw a shape and turn it into an image.
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