I’m trying to build a SliderJoint that’s constrained to the Y axis(vertical).
I use the SliderJoint class and it’s constructor; supplying it the respective controls, their local pivot points and useLinearReferenceFrameA boolean.
The joint gets created but it’s constraint is in the horizontal direction.
I don’t understand how to change the direction of constraint. None of the class methods seem to do so.
I try supplying the alternative constructor with two Matrix3f rotation matrices but that doesn’t change the direction of the slider but rotates the bodies instead.
Any help would be appreciated.