Neighbours for ChipmunkSegmentShape

Official forum for the Chipmunk2D Physics Library.

Neighbours for ChipmunkSegmentShape

Postby Colin Gilbert » Fri Nov 15, 2013 12:31 pm


Can a ChipmunkSegmentShape have multiple previous and/or next neighbours? I wish to implement a structure similar to a spider's web.

Colin Gilbert
Posts: 3
Joined: Wed Jul 10, 2013 1:31 pm

Re: Neighbours for ChipmunkSegmentShape

Postby slembcke » Mon Nov 18, 2013 10:06 am

No, the neighbors property is only to avoid colliding with the ends of segments when you have a lot of them joined together. Otherwise if you make terrain using a chain of segments, it's possible to get caught on the "cracks" between the segments.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! ->
User avatar
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest