Hi all,
I'm trying to create by bullet and OSG a small virtual scene. I already modelled a wall (without holes) and a stick that throughs the wall.
The wall is set as STATIC, while the stick is set as DYNAMIC (with a mass of 1.), because I would give it a push with the mouse: the stick should rotate and translate only on the Z axis.
Unfortunately, as soon as I enable the physics, the stick "jumps" off the wall. Even reading the demo sources, I don't understand how to apply implement these constraints:
1) fix the stick in the wall so that it remains stationary when there are no applied forces;
2) rotate and translate only around the Z axis. Better, I know that I could use a btSliderConstraint to solve this issue, but I can't understand how to use it in practice (I'm a newbie with Bullet).
Can anyone help me? I only need a simple example of use if possible.
Thank you very much