Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Wheel Colliders

Discussion in 'Physics' started by Friction, Nov 16, 2015.

  1. Friction

    Friction

    Joined:
    Jan 6, 2015
    Posts:
    18
    Hi, I try to make an car game. Here my wheel colliders settings:http://i.imgur.com/nr60fIw.jpg?1

    Here a video about the problem:


    Here another video, this is showing car reaction.


    Any idea about reason or solution?
     
  2. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,056
    That i show wheel colliders work, a single ray cast, if you want to have correct tyre collisions then you will need to code your own wheel collider system probably using a sphere collider and a coiple of raycasts.
     
  3. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,497
    Yes, WheelColliders are physically modeled as single ray casts. In most cases it's not a problem. For example, in this video you can hardly notice that the wheels are single ray casts (and they are!):



    The reactions in your second video are most likely a problem of the suspension settings. It's difficult to make that part work correctly due to the wheel design in PhysX, the underlying physics engine in Unity.
     
    Friction likes this.