Line joint allowing perpendicular movement?

I have a button which is supposed to only move up and down, but not move horizontally. I used a line joint. For a long time this worked great.

However, I recently noticed that the button can be pushed sideways. It quickly snaps back to the proper location, but there is still a visible displacement briefly which looks really bad. Has the behavior of line joints been changed in the newest version? Could the difference have to do with bullet vs non bullet collisions? Are there any other joint types I should be using instead?
SVN can show you the log on any file in the repository.

Any joint can be stretched if there are large mass ratios involved.
In this case, there aren't any large mass ratios. I don't remember the exact values, but I think the player is around 3 or 4 times heavier than the button, and traveling at 10m/s. The button is attached to a static body.
Try increasing the mass (density) of the button. If that doesn't help, try to create an example in the C++ testbed.
I tried increasing the mass of the button tenfold, but the same thing still happened.


Also, I can't figure out how to build the testbed. I guess I need to learn how to use CMake. Are there any good places to learn about it?
Is one of the bodies a bullet? The continuous solver does not include joints anymore (too many problems with it). Is the character a dynamic bullet?
Yeah they're bullets. I added CCD after the discussion here. viewtopic.php?f=3&t=5793
Are there any easy workarounds you can think of? The only thing I can think of is manually resetting the position each time a collision is processed.


Also, this is the only joint in my game, and I also only added CCD a week ago, so that would explain why I didn't notice it until now.
Put some static collision against the button.
But the button has to react to forces to go up and down, so it must be dynamic.
Storyyeller wrote:
But the button has to react to forces to go up and down, so it must be dynamic.

Yeah but you don't want it to move sideways right? I think he means to put a static object on each side of the button so that the button will collide with them and keep on it's axis as you want it to.

Original thread: https://box2d.org/forum/viewtopic.php?t=5849