Arc wall in chipmunk
Posted: Mon Dec 07, 2009 2:10 pm
I am trying to create a static wall, which has the shape of an arc and some thickness, as a poly shape in the chipmunk space that is also shared by some moving circles. I am planning to generate points on the arc and create a segment out of it so that I see some collisions. Here are my questions:
1. Is there an easier way? It’s a shame that I am putting Chimunk thru so much when its really a part of circle that I am interested in. I have seen posts that suggest using collision responses but in my case I will have numerous arcs on the same circle. Also at least 5 to 6 such circles.
2. If anyone already did this poly shape creation can you please share some code? I think I have to generate points for two arcs so that they both make up a wall.
Thanks in advance
1. Is there an easier way? It’s a shame that I am putting Chimunk thru so much when its really a part of circle that I am interested in. I have seen posts that suggest using collision responses but in my case I will have numerous arcs on the same circle. Also at least 5 to 6 such circles.
2. If anyone already did this poly shape creation can you please share some code? I think I have to generate points for two arcs so that they both make up a wall.
Thanks in advance