Polygon Problem

Official forum for the Chipmunk2D Physics Library.
abbasi
Posts: 9
Joined: Thu Apr 16, 2009 7:55 am
Contact:

Re: Polygon Problem

Post by abbasi »

ok i got the point and the issue resolved. what would be the best approach to draw a continous hilly path. Any ideas??
abbasi
Posts: 9
Joined: Thu Apr 16, 2009 7:55 am
Contact:

Re: Polygon Problem

Post by abbasi »

ok i think i have to remodel the thing by using a combination of quadrilaterals but is there a way to glue them together permanently???
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Polygon Problem

Post by slembcke »

You can have more than one collision shape per rigid body.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
Tam Toucan
Posts: 141
Joined: Tue Jun 23, 2009 4:26 pm
Contact:

Re: Polygon Problem

Post by Tam Toucan »

abbasi wrote:ok i got the point and the issue resolved. what would be the best approach to draw a continous hilly path. Any ideas??
If you mean like a side on curvy hill then a list of line segments is the way to go. Have a look at the moon buggy demo code (might also be in the normal demos, not looked).

Doesn't do anything clever, just a list of points to connect using line segements.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests