Search Unity

SimpleCarController tutorial make a car that jumps out of the scene.

Discussion in 'Physics' started by DanVioletSagmiller, Aug 22, 2019.

  1. DanVioletSagmiller

    DanVioletSagmiller

    Joined:
    Aug 26, 2010
    Posts:
    204
    Perhaps I missed something, but I tried following all the steps in Unity's Wheel Collider Tutorial, only to have a car that bounce and flips out of the physics boundaries. The video shows it very clearly. I'm assuming I just missed a step, or maybe the tutorial I went though is based on a parent link that includes some general start instructions I missed entirely.

    What ever the case, following the tutorial to produce a drivable care makes on that acts like a jumping bean with no interaction.

    https://docs.unity3d.com/Manual/WheelColliderTutorial.html
     
  2. vagelis199

    vagelis199

    Joined:
    Jul 27, 2012
    Posts:
    182
    Your Root object needs a collider, it should be the size of the truck, its okay if the collider overlaps the wheel colliders.
     
  3. DanVioletSagmiller

    DanVioletSagmiller

    Joined:
    Aug 26, 2010
    Posts:
    204
    Thanks that resolved it. NOTE: In response to your post, I first tried a mesh collider, which did not work, and then switched to adding 2 box colliders to cover the base body and bingo. Thanks.
     
  4. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,508
    A mesh collider must be marked as Convex to work as car collider.