Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Problem with wheels

Discussion in 'Scripting' started by Przebusky1337, Jan 6, 2021.

  1. Przebusky1337

    Przebusky1337

    Joined:
    Jan 1, 2021
    Posts:
    2
    Hello, I am writing this thread because the tires in my game behave strangely, instead of being in place they go out of place and spin around the axis. I need help with this thing since I tried a few scripts and it continues to do the same. From what I noticed, it is a collider problem, but I can be wrong.

    Before starting the game:
    Screenshot_27.png

    After starting the game:
    134593913_804819216764854_3464166373474570238_n.png
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,722
    My guess is scaling issues. Does your model have uniform scaling (1, 1, 1) through the hierarchy other than leaf nodes?
     
  3. seejayjames

    seejayjames

    Joined:
    Jan 28, 2013
    Posts:
    685
    Agreed about scaling...looks like you have the wheels as child objects to an empty GameObject maybe? Or there's a main node in the model that holds the wheels? Whatever is the parent to the wheels looks like it gets scaled up somehow, because the wheels get repositioned outwards from a center point.
     
  4. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    I highly doubt it's a collider problem.

    Please show what code is running on this and how is the hierarchy connected (parent-child and components)
     
  5. Henry_mullin

    Henry_mullin

    Joined:
    Jan 3, 2021
    Posts:
    13
    so after you edit the scene you have to push CTRL + S or CMND + S for it to save and then your problem should be fixed.