- Home /
Car trembling when reaching a certain speed
Hello!
When I start accelerating it starts off smoothly, but once I hit a certain speed the car starts to tremble, like it would if it was driving on a bumpy road.
I recently upgraded from unity 4.6 to 5.0 (I will never upgrade midway through a project again) and had to fix all the wheel collider values.
But what could be causing this trembling when reaching a certain speed?
What speed? If it's going ridiculously fast or far from the origin, you may be running into floating point precision issues.
No, just after automatically changing to the second gear out of four, but not instantly after changing to gear number 2.
The trembling stops when I slow down and then starts when hitting the same speed.
I don't know you or how much you know so excuse me if this is a stupid question. Have you made sure your code is in the right place? I had a similar problem and it was because my camera logic was in Update() but the car logic/physics were in FixedUpdate()
Good question, but the problem only occurred after I upgraded to Unity 5 and updated the values to the "new" wheel colliders.
Are you sure it is the car that is shaking and not the camera itself? The only thing I can think of is putting the camera code in LateUpdate() to try and render the camera after the car has moved. If not, sorry (I am more a animation/AI guy)
Answer by RLin · May 11, 2015 at 08:12 PM
Try to increase the stiffness of the sideways friction. Also, make sure that the torque is being applied symmetrically (ie. Right rear must work with left rear wheel, front right must work with front left wheel).
$$anonymous$$ake sure the wheels are all EXACTLY aligned in position, and check the suspension just to be sure. Is your car 4wd, front wheel drive, or rear wheel drive?
Exactly what speed (in meters/sec or miles per hour or kilometers per hour).
Click on the car in the hierarchy while in playmode. Click the gizmos tab, and show me where the wheel collides truly are.
Sorry, I wasn't clear. I meant when the wheels were going crazy into the air (pause the thing when they start doing that)
The position isn't the wheelcollider's fault, it's the wheel positioning script's fault. The weird movement isn't related to the trembling at all. Disable the wheel positioning script for now, and get the speed of the object when it starts trembling.
Your answer
Follow this Question
Related Questions
Wheel Colliders make my car fly 3 Answers
How do I make car wheels spin and slow down when the car is stopped 0 Answers
Car won't return to respawn point after hitting a trigger 2 Answers
Wheel Collider Rotation 0 Answers
Can you help my with WheelColliders? 0 Answers