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

Official forum for the Chipmunk2D Physics Library.
Post Reply
Akhad
Posts: 1
Joined: Thu Jul 03, 2014 2:50 pm
Contact:

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

Post 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 ;)
viblo
Posts: 206
Joined: Tue Aug 21, 2007 3:12 pm
Contact:

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

Post 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.
http://www.pymunk.org - A python library built on top of Chipmunk to let you easily get cool 2d physics in your python game/app
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests