Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  3. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    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,251
    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,251
    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:
    2
    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.