joints. Need help!!!

Official forum for the Chipmunk2D Physics Library.
Post Reply
Rocky612
Posts: 1
Joined: Mon Nov 09, 2009 10:40 am
Contact:

joints. Need help!!!

Post by Rocky612 »

I use cpSliderJoints with min=max=0. but they sometimes start sliding. how can i fix it?
zaerl
Posts: 40
Joined: Fri Aug 28, 2009 8:36 am
Contact:

Re: joints. Need help!!!

Post by zaerl »

Why using a slider joint with min = max = 0.0f?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: joints. Need help!!!

Post by slembcke »

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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 5 guests