problem on hinge constraint

Please don't post Bullet support questions here, use the above forums instead.
freikorps
Posts: 5
Joined: Sun Jul 11, 2010 2:29 am

problem on hinge constraint

Post by freikorps »

I want to build a robot like this:http://www.youtube.com/watch?v=SI8MhZ_UiPI
I started from building one part of the whole robot like the picture in the attachment.
and I want the two cubic-like bodies to rotate around the edges of the plane.

I use btHingeConstraint to achieve this, when each of the body was attached separately to the stick, it can rotate normally, but when I connected both of the two bodies to the plane, they start to rotate unstoppable and fly to the sky...

Does anyone know what the reason might be?

Thanks for your attention.
freikorps
Posts: 5
Joined: Sun Jul 11, 2010 2:29 am

Re: problem on hinge constraint

Post by freikorps »

problem solved.
I had mis-configured the parameters of the positions in the btHingeConstraint function. the two constraints were set to the same end of the shaft, after changing it to the opposite end, it works well.

thanks for your attention.