Making a side view car

Jan 19, 2013 at 1:56 AM

Hello I am trying to to make a simple car that has springs, I am using 2 prismatic joints and 2 revolute joints. My setup is like this:

I have a main rectangle body. Then i have two square axles which are attached to the main body with prismatic joints which i have put limits on and a axis constraint (0,1) (vertical), then i have two circles which are connected to the axles with revolute joints.

I am having only one issue which is when i drive the car the wheels move from side to side which should not be possible because i put the axis of the prismatic joints to vertical. Also the wheels can move up beyond the limit i have set for the prismatic joints. If anyone could explain to me why this could be happening that would be great.

Jan 21, 2013 at 6:04 PM

You should probably use Line joints for suspension -- that's what they're for.  The Farseer Samples project includes exactly what you're trying to do (side view of a car -- see GameDemo1.cs).