Search Unity

Can't see Wheel Collider. What could be wrong?

Discussion in 'Physics' started by Deeeds, Apr 29, 2018.

Thread Status:
Not open for further replies.
  1. Deeeds

    Deeeds

    Joined:
    Mar 15, 2018
    Posts:
    739
    I've tried everything I can think of, and watched and done tutorials, but can't get to see a wheel collider in the editor.

    Nor be sure of it working. It goes through things, falling through planes and cubes created as ground.

    I've done the setup right, as per tutorials, but could there be something I'm forgetting to switch on? Or off?

    using:
    Unity 2018.1b13
     
    Last edited: Apr 29, 2018
    OlehBur likes this.
  2. Deeeds

    Deeeds

    Joined:
    Mar 15, 2018
    Posts:
    739
    Have created new projects, and tried different rendering modes in viewports. Still no visible wheel collider outlines as per tutorials and scene in all videos and screenshots others create.

    Mystified.
     
  3. Deeeds

    Deeeds

    Joined:
    Mar 15, 2018
    Posts:
    739
    Same problem in latest 2018.2b2

    and this box is checked:

    Screen Shot 2018-04-29 at 10.26.15 pm.png
     
    Last edited: Apr 29, 2018
    awkcarnage likes this.
  4. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,510
    Maybe the Rigidbody is missing? The WheelCollider won't draw any outline unless there's a Rigidbody component in its GameObject or any of its ancestors.

    Try this in a new scene:
    1. Create a cube (GameObject > 3D Object > Cube)
    2. Add a Rigidbody component (Component > Physics > Rigidbody)
    3. Add a WheelCollider (Component > Physics > Wheel Collider)
    You should see the WheelCollider outline there:

    upload_2018-5-2_17-33-24.png
     
  5. Deeeds

    Deeeds

    Joined:
    Mar 15, 2018
    Posts:
    739
    How did you get this look "inside" the cube?
     
  6. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,510
    Just follow the steps described above.
     
  7. Deeeds

    Deeeds

    Joined:
    Mar 15, 2018
    Posts:
    739
    I've done that, and gotten it working in 2018.1.0f2

    But I don't have that lovely inward looking cube.
     
  8. XSpitFire

    XSpitFire

    Joined:
    Jan 22, 2018
    Posts:
    15
    I had one wheel that did not draw the collider on an empty. Somewhere along the way I accidentally set one of the axis's scale to 0.
     
  9. Deleted User

    Deleted User

    Guest

    Just incase anyone comes across this...
    I had the same problem...

    for me I didn't have gizmos checked
     
  10. wshigham

    wshigham

    Joined:
    Dec 30, 2019
    Posts:
    14
    Hi, I'm having this same issue. I add a game object, with a rigidbody and a wheel collider, and the wheel collider doesn't show in the scene view.

    Can you expand what you mean by not having the gizmos checked? Where is this setting found?
     
  11. wshigham

    wshigham

    Joined:
    Dec 30, 2019
    Posts:
    14
    Ah I found it now, from the info at the below link. Toggling this on fixed this for me.
    https://docs.unity3d.com/Manual/GizmosMenu.html
     
  12. SamMaple

    SamMaple

    Joined:
    Jan 21, 2020
    Posts:
    1
    i spent like 3 hours looking up videos and helps on how to get it to appear just to later realize i didnt have the gizmos box checked.....*facepalm*
    you cant tell from the visibility if its checked or not..lmao
     
    Konesky likes this.
  13. brn_ghs

    brn_ghs

    Joined:
    Jul 22, 2018
    Posts:
    22
    I was with the same problem, i resolved it by adding a rigidbody in the parent gameobject
     
  14. Ex6tra

    Ex6tra

    Joined:
    Oct 31, 2019
    Posts:
    14
    You saved me!!!
     
    brn_ghs likes this.
  15. sevdigim1451

    sevdigim1451

    Joined:
    May 2, 2020
    Posts:
    42
    Yes I did and worked, I dragged to wheel collider object and I deleted to cube.Thank you
     
  16. devdesgames

    devdesgames

    Joined:
    Mar 6, 2020
    Posts:
    1
    Big thanks
     
    Edy likes this.
  17. Szelestowski

    Szelestowski

    Joined:
    Jun 6, 2017
    Posts:
    1
    You can change the layout to another one should work and switch to the one you want to use. It helped me in Unity 2019.4
     
  18. djakap

    djakap

    Joined:
    Oct 18, 2020
    Posts:
    2
    i tried to right click one wheel collider on the inspector and chose find reference in scene.
    and i close the tab scene and reopen it. it works. dont know why
     
  19. Eloren

    Eloren

    Joined:
    Jul 17, 2019
    Posts:
    24
    Add Rigidbody
     
  20. electromaster20000

    electromaster20000

    Joined:
    Aug 18, 2020
    Posts:
    2
    THANK YOU SO MUCH, I have had this issue for days and it has driven me MAD. I cannot express in in words how much this helped me. Thanks
     
    CandraWi and Edy like this.
  21. adiomigames

    adiomigames

    Joined:
    Jan 12, 2021
    Posts:
    2
    generally these wheels are invisible due to the fact that people probably didn't add the rigidbody element to the object of the whole car, if you do it all will work
     
  22. Aminur

    Aminur

    Joined:
    Dec 1, 2020
    Posts:
    2
    This really worked for me. Got stuck and had me looking for a while. Glad I came across you!
     
    brn_ghs likes this.
  23. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    I've just had the same problem and I was doing everything correctly. Then someone said it up there and saved my day:
    Close the Scene tab. Reopen it from Window/general/scene and bang! worked. And also began showing gizmos that were missing. Probable on one of those unity updates it lost the settings.
     
    ferranases likes this.
  24. jacobvanleenen

    jacobvanleenen

    Joined:
    Jan 5, 2022
    Posts:
    1
    This worked for me. Once you mentioned the rigid body, I noticed my parent object that contains the rigid body component was not a part of my prefab. I added the parent object to the prefab and the wheel collider shows now. Thank you.
     
  25. livingsarang

    livingsarang

    Joined:
    Jan 20, 2022
    Posts:
    2
    You saved my day
     
  26. unity_7107976B5DF92D908CD5

    unity_7107976B5DF92D908CD5

    Joined:
    Oct 14, 2021
    Posts:
    1
    god bless you
     
  27. unity_dEoc1WUFpVMdYw

    unity_dEoc1WUFpVMdYw

    Joined:
    Jul 21, 2022
    Posts:
    1
    Hi, I faced same issue recently. By mistake I set the Scale to 0 for all 3 dimensions. :D
     
Thread Status:
Not open for further replies.