I'm trying to use pymunk on OS X and it's not working at all. Numeric properties on some objects don't get set properly. On bodies, mass is always some huge value and friction is always 0.0. Some things work, e.g. friction on a Circle.
I've tried this on Linux and everything works as expected.
Does anyone have any idea what could cause this? Lots of details follow. Thanks!
System: MacBook Pro, Intel, 32bit, OS X 10.6.8. Python 2.6.1. (Also tried with 2.5)
Code: Select all
>>> import pymunk
Loading chipmunk for Darwin (32bit) [/Library/Python/2.6/site-packages/pymunk/libchipmunk.dylib]
>>> body = pymunk.Body(10, 20)
>>> body.mass
1.4044477616111843e+306
>>> body.mass = 10
>>> body.mass
1.4044477616111843e+306
>>> body.friction = 10.0
>>> body.friction
0.0
Code: Select all
Aborting due to Chipmunk error: Body's position is invalid.
Failed condition: cpfabs(v.x) != INFINITY && cpfabs(v.y) != INFINITY
Source:chipmunk_src/cpBody.c:108