Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

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

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

  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
  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
  4. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    1,434
    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
     
    Deeeds likes this.
  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:
    1,434
    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:
    4
    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.