Hi, what happened to slider joint?
The one I found on some old repo doesnt work anymore. Can slider joint be simulated with existing joints?
Or maybe someone has reimplemented it?
Thanks.
What exactly do you mean by slider joint? There is a prismatic joint which will let you form a slider of sorts between two bodies, keeping their relative rotation fixed. If you want to allow the second body to rotate while still having its joint anchor constrained to a point along a line, you can use a wheel joint and set the frequencyHz to zero.
You could:
- use a combination of rope joint (for max distance) and fixtures (for min distance)
- try to add a min distance constraint to the rope joint
- port the XNA code