SliderJoint with fixed angle?

Topics: Developer Forum
Jul 20, 2009 at 9:36 PM

Hi there,

I've played around with Farseer now for a couple of days, and decided to build a sideview of a motorcycle to try it out.
Everything works great except the front fork.

I have the front fork in 2 pieces, the lower and the upper part.
The lower part is attached to the front wheel (RevoluteJoint) and uses an AngleJoint to have the same angle as the chassi.
The upper part is attached to the chassi through a PinJoint and uses an AngleJoint to have the same angle as the chassi.

Now to my question:

I want the 2 pieces of the fork to be attached to each other by a SliderJoint BUT I don't want them to move sideways.
With the SliderJoint I can set the perfect min and max value for the front forks suspension, but I can't get it to just move up and down.
Is there anything I have missed? Or do i need to create Bodies on each side of my fork to help them stay on path.

Hope I made any sense.

Any help is greatly appreciated!

Best regards
Dennis