Search Unity

My question is about WheelCollilder - vehicle not going straight

Discussion in 'Physics' started by Visual-Arts, Nov 28, 2017.

?

How can I fix the car physics in unity!

  1. Please help

    1 vote(s)
    100.0%
  2. I tried everything but I couldn't

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. Visual-Arts

    Visual-Arts

    Joined:
    Oct 28, 2017
    Posts:
    4
    Hello everyone! I have the same problem in my game! I tried to do like this but I couldn't fix the problem! My vehicle not going straight! How can I fix that! You can also watch at this video!
    When I press W and and my car is begining to go but in a few seconds my car is going left or right! It doesn't move in a straight line, but turns slightly to the left or right! Even I tried this from unity5 to unity2017! I can't fix this problem.

    First video >>>
    <<<
    Second video >>>
    <<<
     

    Attached Files:

  2. JamesLeeNZ

    JamesLeeNZ

    Joined:
    Nov 15, 2011
    Posts:
    5,616
    Wheel colliders have always been this way.

    nothing you can do about it.. if you need it to go straight youll need to introduce some ai steering behaviour
     
    Visual-Arts likes this.
  3. Visual-Arts

    Visual-Arts

    Joined:
    Oct 28, 2017
    Posts:
    4
    Hmmm..! I tried car game in the "Example Project" of unity and there were the same problem! But I saw in the gta and other games were not too much like this! How can I introduce "AI" steering behaviour and how can I connect this to my car controller? Can you tell?
     
  4. Visual-Arts

    Visual-Arts

    Joined:
    Oct 28, 2017
    Posts:
    4
    But its not looking realistic