HingeConstraint constructor bug

User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: HingeConstraint constructor bug

Post by Erwin Coumans »

Hi Dragonlord,

Can you reproduce this issue with hinge limits in a Bullet ConstraintDemo?

Can you try out the new btSliderConstraint in Bullet 2.68 beta? It can be configured as a limited hinge, see the SliderConstraintDemo.

Thanks,
Erwin
User avatar
Dragonlord
Posts: 198
Joined: Mon Sep 04, 2006 5:31 pm
Location: Switzerland
Contact:

Re: HingeConstraint constructor bug

Post by Dragonlord »

I'm giving some more editing to my editor first so I can try also work on multiple constraints ( currently I hacked in the test constraint on loading ). Should not take more than a day or two. I'm then going to test the different constraints and maybe ( if I find some desktop-recorder for Linux which is worth it and can record from direct-rendering displays ) I can give some videos show better what happens with the constraint.

EDIT: Added some visual joint error display and fiddled a bit around. Not sure yet what to make of it. One thing is though for sure the large errors happen due to certain placement of the constraints. Maybe the problem with the door has not been just due to the hinge constraint. I find also cases where the point-socket constraint errors like hell but in contrast to the hinge constraint the errors in the ball-socket constraint have a smooth curve. Hence the ball-end moves out of place to the socket in a smooth curve not jittering hiding the incorrect behavior whereas the hinge constraint has ( which I consider astonishing ) smaller maximum error in the joint but weasels around the correct position erratically. In fact it's this erratic motion which gives the hinge constraint the jittery look although it would have less maximum error.

I'm going to play more with the parameters. I'm pretty sure these cause the problem.
Post Reply