Pymunk problem
Posted: Sun Apr 21, 2013 11:46 am
I'm using a few snippets from the Pymunk Slide and Pin Joints example but when I try to create the 'static L' I only get the first line, here's how I'm creating it (only the definition name has changed)...I have the same problem with the bouncing_balls demo (which I think is basically the same script) without changing anything.
What I need to do is create 2 walls and a floor to contain some balls.
Any help much appreciated.
Dave.
Code: Select all
def add_bowl(space):
body = pymunk.Body()
body.position = (300,300)
l1 = pymunk.Segment(body,(-150,0),(255,0),5)
l2 = pymunk.Segment(body,(-150,0),(-150,50),5)
space.add(l1,l2)
return l1,l2What I need to do is create 2 walls and a floor to contain some balls.
Any help much appreciated.
Dave.