Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个简单的pymunk代码给我带来了问题:
space = pm.Space() b = pm.Body() b.position = 400,400 c = pm.Circle(b,10) space.add(b,c)
上面的代码创建了一个如下所示的对话框
为什么会发生这种情况,我该如何解决?
如果你检查命令行我想你会发现 Chipmunk 打印出了原因。几乎可以肯定,问题是您正试图向空间添加静态主体,您不能这样做。