I want a static arc shape (portion of circle), but I cannot find how to do that in document, any idea?
Thanks
How to create an arc shape?
-
- Posts: 1
- Joined: Fri Jan 02, 2009 7:02 pm
- Contact:
-
- Posts: 157
- Joined: Mon Aug 20, 2007 12:53 pm
- Location: London, UK
- Contact:
Re: How to create an arc shape?
You can't. The best you can do is approximate it with lots of faces on a polygon or line segments.
-
- Posts: 90
- Joined: Tue Aug 04, 2009 9:53 am
- Contact:
Re: How to create an arc shape?
Just curious if anyone has any insight on why simulating an arc shape would be hard. It "seems" easy enough: recognize as a circle but with extra checks against angle and distance (I realize this functionality is not in chipmunk... yet); anyone?
-
- Posts: 40
- Joined: Fri Aug 28, 2009 8:36 am
- Contact:
Re: How to create an arc shape?
1) Create a cpCircleShape
2) Create your own collision callback in which you return 1 only when the collision normal is contained in the arc
cpCollFunc contains all the informations you need.
2) Create your own collision callback in which you return 1 only when the collision normal is contained in the arc
cpCollFunc contains all the informations you need.
Who is online
Users browsing this forum: No registered users and 7 guests