Question

This simple pymunk code is giving me problems:

space = pm.Space()
b = pm.Body()
b.position = 400,400
c = pm.Circle(b,10)
space.add(b,c)

The above code creates a dialog like the one below

Error Dialog

Why is this happening, and how do I solve this??

Was it helpful?

Solution

If you check the command line I think you will find that Chipmunk printed out the reason. Almost certainly the problem is that you are trying to add a static body to the space, you cannot do that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top