I'm using Python 2.7.2+ on Linux Mint 12 with Pymunk 2.1.0
Mainly I'm having trouble with Springs and Pivot joints. Here's some code I wrote:
Code: Select all
BALL = createBall(150, 150, mass=30, radius=50) BALL2 = createBall(250, 250, mass=5, radius=10) joint = pymunk.DampedSpring(BALL.body, BALL2.body, BALL.body.position, BALL2.body.position, 70, 50, 50) space.add(joint)
On Pivot joints, it just acts... weird. I switched joint=pymunk.DampedSpring with joint=pymunk.PivotJoint (removing the extraneous numbers, of course), and it basically does the same thing as the Damped Spring. BUT if I specify a pivot point like pymunk.Vec2d(200,200) instead of two anchors, it sort of behaves/
Can someone show me what I'm doing wrong?