Page 1 of 1

Pymunk - static rectangles, circles, sprites...?

Posted: Thu Jul 03, 2014 2:55 pm
by Akhad
Hello.
I have trouble with Pymunk. I don't know how to create static collidable objects, such as platforms, walls, and circles.
How to do that? I must use pymunk.Segment? If yes, how to make static circle? This is very strange for me...


Thanks for help ;)

Re: Pymunk - static rectangles, circles, sprites...?

Posted: Sat Jul 05, 2014 1:50 pm
by viblo
All the shape objects can be made static including pymunk.Circle, pymunk.Poly and pymunk.Segment. Just pass in a static body when you create it. If you want you can even use the already defined static shape of the pymunk.Space object.