Constraints question- lockable?

RJNelson68
Posts: 73
Joined: Tue Oct 06, 2009 3:19 pm

Constraints question- lockable?

Post by RJNelson68 »

I have been reading through the code and the manual and have not seen this. So before I tried to put it together I wanted to ask if there is some way to lock and unlock a joint in real time?
RJNelson68
Posts: 73
Joined: Tue Oct 06, 2009 3:19 pm

Re: Constraints question- lockable?

Post by RJNelson68 »

OK how about some sort of method to force them to be less flexible that can be changed on the fly?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Constraints question- lockable?

Post by Erwin Coumans »

The btGeneric6DofConstraint::setLimit can be set and used to lock/unlock the constraint for each of the 6 (3 linear, 3 angular) degrees of freedom. Also, its motors can be set on the fly.

Thanks,
Erwin
RJNelson68
Posts: 73
Joined: Tue Oct 06, 2009 3:19 pm

Re: Constraints question- lockable?

Post by RJNelson68 »

Thanks a ton, thats exactly what I was looking for.