Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How set the car drift to off?

Discussion in 'Physics' started by wonderProg, Sep 2, 2015.

  1. wonderProg

    wonderProg

    Joined:
    Apr 12, 2014
    Posts:
    22
    Hi, folks.

    I created a new scene.

    Added a car prefab, which comes with the standard assets unity package:
    https://www.assetstore.unity3d.com/en/#!/content/21064

    My problem here is, that the car drifts too much.

    How can I make it, that the car no more drifts? How can I set it to off?

    I found, that the car has a wheelcollider. I changed a lot of values there. The car still drifts.

    I would greatly appreciate any help you can give me.
     
    Sid315 likes this.
  2. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    Hello,

    You must find the good values for the wheel collided, I spent 8hour to find the good values for only 1 car lol.

    You must change some values in game, when your speed increase.

    I use only wheelcollider in my draft game
    http://www.deathanddust.com/projectcar
     
  3. wonderProg

    wonderProg

    Joined:
    Apr 12, 2014
    Posts:
    22
    I can't understand, why is so hard. This is my second day. The car still drifts too much.

    Here is one of the wheel collider (WheelHubFrontRight):



    I tried so many variations. Nothing is helping.

    I need a stable car, that not drifts too much.

    Nobody has the same problems?
     
  4. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    Your mass is too low, try 100.
    Your spring is too soft, try 35000 and 4000 for damper.
    Your extremum is too high, I use 4
     
  5. wonderProg

    wonderProg

    Joined:
    Apr 12, 2014
    Posts:
    22
    When I change mass = 100, spring = 35000 and damper = 4000.

    The car is not moving.

    And, which extremum value must I change to which value?
     
  6. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    If you car doesn't move, put more Torque.
     
  7. wonderProg

    wonderProg

    Joined:
    Apr 12, 2014
    Posts:
    22
    ok. I set torque to 8000.

    Which extremum values must I change? Car still slips.
     
  8. diegoadum

    diegoadum

    Joined:
    Jun 3, 2018
    Posts:
    7
    Hi! did you find a solution for this? I'm running the same problem. Thanks!
     
  9. igvicar

    igvicar

    Joined:
    Apr 25, 2020
    Posts:
    1
    set the stiffness in the sideways friction to 0, that should work
     
  10. PinkFluff432

    PinkFluff432

    Joined:
    Aug 1, 2021
    Posts:
    2
    that didn't work it made it worse

    (in my case)