I'm trying to find some way to iterate over the constraints dependent on a specific body in pymunk. There seem to be multiple ways to do so in Chipmunk, but I can't find an equivalent in pymunk. I would like to see some way to detect constraints such that I don't have to manually keep track of all of them.
I'd also like to see a way to detect the shapes associated with a body. In general, I'd like to be able to automatically remove a body's shapes and constraints when I remove the body from a space. Is that possible?