#pymunk — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #pymunk, aggregated by home.social.
-
A quick sketch with my #pymunk helpers (to test some pickle enabling improvements)
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_08_04 #Processing #Python #py5 #CreativeCodingPS: Warning - you should not be loading pickle files from unknown folks from the Internet, you know? https://00xmora.github.io/posts/Pickle-RCE-Exfiltrating-Secrets-via-Unsafe-Deserialization/ Just save and load you own pickle data!
-
#pymunk The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_21 #Processing #Python #py5 #CreativeCoding
-
#pymunk
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_20 #Processing #Python #py5 #CreativeCoding -
#pymunk studies... spring WIP The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_19 #Processing #Python #py5 #CreativeCoding
-
Adding some old code for handling #shapely MultiPolygons and Polygons with holes to my #pymunk wrapper :)
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_12 #Processing #Python #py5 #CreativeCoding -
Zero-gravity study of #pymunk PinJoint and PivotJoint,
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_11 #Processing #Python #py5 #CreativeCoding -
Back to the #pymunk experiments
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_10 #Processing #Python #py5 #CreativeCoding -
More #pymunk experiments, I think I have a basic "experimental helpers" module with a few wrapper classes.
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_08 #Processing #Python #py5 #CreativeCoding -
#pymunk
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_06 #Processing #Python #py5 #CreativeCoding -
#pymunk
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_05 #Processing #Python #py5 #CreativeCoding -
WIP I'm pursuing an idea I discussed with Ramalho once about making some thin class wrappers around #pymunk objects to simplify creation (and py5 drawing) of the simulations. The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_04 #Processing #Python #py5 #CreativeCoding
-
More #pymunk studies...
The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_03 #Processing #Python #py5 #CreativeCoding -
A small #pymunk demo I've built today at Sesc... The sketch-a-day archives and tip jar are at: https://abav.lugaralgum.com/sketch-a-day Code for this: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_04_02 #Processing #Python #py5 #CreativeCoding
-
I have built a new bundling of Portable Thonny #Python IDE for #WIndows with #py5 and some other libraries pre-installed (#shapely, #trimesh, #pymunk & etc.) it would help me if people could test it:
More about this (and example code to test!) at https://abav.lugaralgum.com/como-instalar-py5/index-EN.html
On other news, I would love to find someone with #MacOS dev skills willing to volunteer re-packaging Thonny with py5 for MacOS
-
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_05_02
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding #pymunk -
WIP, anotrher #pymunk study. Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_29
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding -
A small Pymunk example for class.
No interactive segment-wall drawing for this one. And I can't use pickle for this sketch in imported mode :(
(see previous day for both features and the triangulated polys!) Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_28
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562
#pymunk #Processing #Python #py5 #CreativeCoding -
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_27
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562
#pymunk #Processing #Python #py5 #CreativeCoding -
I want to simplify #pymunk + #py5 use for my students but I struggle with finding good strategies… Pymunk has two types of (linked) objects for each simulated object: body and shape. For complex objects (like concave shapes) you can use more than one convex shape linked to the same body. In these cases I usually want to have an extra shape to draw and hide the triangulation.
I don't want to keep extra data structures to track the simulation objects to draw. I tried both extending and monkey patching either body or shape objects to be "drawable" so I can just iterate the native pymunk structures and ask stuff to draw themselves (would be nice, huh?), but there is always some snag. If I extend shape classes, I stumble on the complex objects with many shapes drawn with divisions. If I extend the Body class, the problem is static objects have shapes but share a virtual constant body, more of a flag, so I can't add anything to it, so back to keeping track of a separate list of static shapes… Then performance & serialization issues, I want to be able to easily pickle simulations, but if I add Py5Shape objects to the extended/modified classes they become unpickable...
I have bigger fishes to fry right now (the paralyzing PhD) but this is something I would like to pair with someone more experienced to work on. -
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_26
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562
#pymunk #Processing #Python #py5 #CreativeCoding -
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_24
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding
#pymunk -
compare and take your own conclusions!
PyMunk with py5 https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_23
PyMunk with pygame https://github.com/viblo/pymunk/blob/master/pymunk/examples/balls_and_lines.py
#PyMunk #py5 #2Dphysics #CreativeCoding #pygame #pygamece #collisions
-
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_23
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562
#PyMunk #Processing #Python #py5 #CreativeCoding -
I'm obviously completely biased, but, if you are an educator teaching #Python and using #pygame / #pygamece, do check out #py5 (https://py5coding.org).
I'm sure other sprite & game stuff must be easier in pygame, but I'm adapting a #PyMunk example, and IMHO, events are so much easier in py5...
(I'll try post it here tomorrow, I should be doing something else, as usual...)
-
Schlangenfraß: Video-Tutorials zum Wochenende
Da mein Programm für die nächsten Wochen oder gar Monate darin besteht, mindestens die ersten drei Kapitel aus Daniel Shiffmans »The Nature of Code« nach Python und Pygame zu portieren und um eigene Beispiele zu erweitern, habe ich mir zur Vorbereitung erst einmal ein paar Video-Tutorials herausgesucht, die ich Euch nicht vorenthalten möchte: https://kantel.github.io/posts/2025022101_python_video_tutorials/ #GameDev #Python #Pygame #Pymunk #VPython #Trinket #NatureOfCode
-
Weiter mit der Python Arcade Bibliothek?
Die jüngste (Wieder-) Entdeckung der Python Arcade Spielebibliothek hat mich ziemkich gefesselt und die letzten Tage nicht in Ruhe gelassen. Und so habe ich weiter mit ihr experimentiert und dabei einiges gelernt: https://kantel.github.io/posts/2025021402_arcade_tut_2/ #Python #GameDev #Arcade #Pyglet #Pymunk
-
A lazy rehash of a PyMunk sketch. #genuary2025 #genuary18
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_01_18
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work: https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724 #PyMunk #Processing #Python #py5 #CreativeCoding -
Updated: Sharing today a new version of my #Thonny portable (the beginner friendly #Python IDE) with #py5 #shapely #trimesh and #pymunk pre-installed. This "re-packaged distribution" makes it easier for my students to have a #CreativeCoding environment on Windows, and is specially useful for school labs with installation constraints...
Please help me test it!
https://github.com/villares/thonny-portable-with-py5?tab=readme-ov-file#2024-11-17
Some code: https://abav.lugaralgum.com/como-instalar-py5/index-EN.html#4-run-a-small-example-to-check-everything-is-workingI'd like help to build and sign a MacOS "equivalent" and maybe make a Linux AppImage, I'm not sure if AppImage will work as it would need to let people install further libraries. DM of you'd like to help!