joints. Need help!!!
-
- Posts: 1
- Joined: Mon Nov 09, 2009 10:40 am
- Contact:
joints. Need help!!!
I use cpSliderJoints with min=max=0. but they sometimes start sliding. how can i fix it?
-
- Posts: 40
- Joined: Fri Aug 28, 2009 8:36 am
- Contact:
Re: joints. Need help!!!
Why using a slider joint with min = max = 0.0f?
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: joints. Need help!!!
A couple of things to note.
If you are using a slide joint with a min/max of 0, you probably meant to use a pivot joint. It will be more stable.
If by "starts sliding" you mean that it doesn't perfectly hold the anchor points together, then you should realize that the constraints/joints/collisions are really only requests to keep certain conditions. Chipmunk will do it's best, but cannot guarantee that objects won't get pushed into each other or that joints will get stretched out.
If you are using a slide joint with a min/max of 0, you probably meant to use a pivot joint. It will be more stable.
If by "starts sliding" you mean that it doesn't perfectly hold the anchor points together, then you should realize that the constraints/joints/collisions are really only requests to keep certain conditions. Chipmunk will do it's best, but cannot guarantee that objects won't get pushed into each other or that joints will get stretched out.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: Heise IT-Markt [Crawler] and 5 guests