Non-rotating Distance Joint

Is it possible to create a distance joint that doesn't rotate? Or to limit its rotation? I'm building a spring scale simulation and using a distance joint to model the spring. In an actual spring scale, the motion is largely vertical, but in my simulation I'm getting a lot of horizontal movement (due to rotation).

I can post a link if this doesn't make sense.

Thanks!
If not sure if either of these would fit your requirements, but you might check out the 'line' and 'prismatic' joint types (depending on what version of Box2D you're using).
I'm using 2.0.2 for Actionscript 3 (with the Quickbox2d wrapper). I don't have line joints (are those new in 2.1a?) and I've considered the prismatic joint--it just seems like overkill (and also is much harder to implement properly) when the distance joint is almost exactly what I want--especially since I can use frequency and length to model the elasticity of the spring. It may be that I need to keep working on the prismatic joint.
Have you tried turning off rotation of one or both of the bodies that are connected via the joint?

Regards,
Q
Yep--the objects themselves don't rotate, just the joint connecting them.
That sounds like exactly what prismatic joint was made for.
I don't think it sounds like what prismatic joint is for, because AFAICT the distance is supposed to remain fixed.. right?

You could try using a third body instead of a distance joint, and turn off its rotation.
Interesting--the distance is supposed to be fixed, to an extent. The equilibrium is supposed to be fixed but the body should be elastic. You can set the frequency of a distance joint--is there a way to do something equivalent with a body?

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