Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Abacab · May 11, 2015 at 09:54 AM · c#unity 5carwheelcollider

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?

alt text

screen-shot-2015-05-11-at-130756.png (37.3 kB)
Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FortisVenaliter · May 11, 2015 at 05:07 PM 0
Share

What speed? If it's going ridiculously fast or far from the origin, you may be running into floating point precision issues.

avatar image Abacab · May 11, 2015 at 05:17 PM 0
Share

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.

avatar image zviaz · May 11, 2015 at 05:48 PM 0
Share

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()

avatar image Abacab · May 11, 2015 at 05:50 PM 0
Share

Good question, but the problem only occurred after I upgraded to Unity 5 and updated the values to the "new" wheel colliders.

avatar image zviaz · May 11, 2015 at 05:55 PM 0
Share

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)

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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).

Comment
Add comment · Show 38 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RLin · May 11, 2015 at 08:31 PM 1
Share

$$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?

avatar image RLin · May 11, 2015 at 08:33 PM 1
Share

Exactly what speed (in meters/sec or miles per hour or kilometers per hour).

avatar image RLin · May 11, 2015 at 08:42 PM 1
Share

Click on the car in the hierarchy while in playmode. Click the gizmos tab, and show me where the wheel collides truly are.

avatar image RLin · May 11, 2015 at 08:46 PM 1
Share

Sorry, I wasn't clear. I meant when the wheels were going crazy into the air (pause the thing when they start doing that)

avatar image RLin · May 11, 2015 at 08:50 PM 1
Share

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.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges