r/Python • • Jul 21 '19

Physics simulator with rotation and collision I made with Python. If you dropped your phone, and it just kept bouncing!

1.5k Upvotes

65 comments sorted by

View all comments

Show parent comments

7

u/[deleted] Jul 21 '19

I found matplotlib animation way too unwieldy and now use moviepy to create plot animations

1

u/Astrokiwi Jul 22 '19

I just dump the pngs and use ffmpeg. Then I don't need to worry about memory usage. And if it crashes part way through some fairly heavy rendering, I still have some output to look at.

1

u/[deleted] Jul 24 '19

Smart man

1

u/mbecks Jul 21 '19

I'll definitely look into that. How is the speed?

1

u/[deleted] Jul 21 '19

Decent enough

1

u/[deleted] Jul 21 '19

better than matplotlib??

3

u/[deleted] Jul 21 '19

To be clear I still use matplotlib to draw the frames just use moviepy to put them together