S SearchRSS
< BackHome
Newest questions tagged python - Stack Overflow

How to remove a body/shape/constraint from pymunk space without exceptions

In Pymunk, I can call the .remove() method of a Space to remove bodies, shapes and/or constraints from it. However, it will raise an error if the object doesn't exist in the space (e.g. was already removed). Example: imp

View original source