Locking all other axes works fine, but if I lock these two axes, btGeneric6DofConstraint becomes unstable.
To reproduce this effect you can exchange 4 lines of code after creation of the first slider in the "Constraint Demo" (ConstraintDemo.cpp)
with the following lines:
Code: Select all
// unlock linear limit
spSlider6Dof->setLinearLowerLimit( btVector3(1,1,1) );
spSlider6Dof->setLinearUpperLimit( btVector3(-1,-1,-1) );
// lock X and Z axes
spSlider6Dof->setAngularLowerLimit( btVector3(0,1,0) );
spSlider6Dof->setAngularUpperLimit( btVector3(0,-1,0) );Is there maybe any other way to lock rotational axes?