Car front wheel turning is weird

Hey Devforum!

I’ve had this issue a lot when making cars. I’ve never known how to solve it though.

My front wheels when making cars seem to turn really weird no matter what I try to do. I’ve tried 3 or 4 youtube tutorials so far on how to make a car but each time the issue still seems to happen. Basically, the front wheels turning seems to be really jittery and unresponsive. Even when I aren’t turning they seem to go skee-whiff.


(Sorry for poor quality, also the video jumps at some point randomly I think. I have a crap pc so yeah…)

I am using hinge constraints with the servo functionality. I have tried changing angular responsiveness, angular speed and servomaxtorque to very small and very large number and the issue doesn’t seem to get better or worse. What should I do about it?

2 Likes

Try increasing the weight of each wheel, it will fix the jitteriness.

Hmm, doesn’t seem to have helped. I increased the density and played around with the servo’s settings a bit and nothing really has changed. Still wobbles around.

That’s your problem. You NEED to use motors. Constraint-based vehicles never work properly or always glitch out.

How do you use motors for the steering? Wouldn’t the wheels just stay in the same rotation when you release turn keys?

The Motor instance has a DesiredAngle property that you can change, along with a MaxVelocity. Though you could also use Motor6D if you want.

Worked! Took a while but found out the desired angle is in radians I think? Might be wrong on that… But whatever it’s measured in I got there in the end!

I use constraint-based vehicles, and they always worked properly/never glitches.

It looks like when you set your HingeConstraints for the steering you didn’t set the ServoMaxTorque to inf which takes care of most of the weakness you see. Another trick is to set the AngularResponsiveness, which is how quickly the Servo tries to get to the angle you set it at. I think it’s between 5 and 200, but I can’t remember if 5 is instant or 200 is instant.

Those constraint-based vehicles are likely better designed with everything thought out. It is very hard to get constraint vehicles correct, which usually could alternatively be solved with a non-constraint-based solution.

200 is instant. I don’t know why it stops at 200 though.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.