Search Unity

Using wheel collider for square wheels

Discussion in 'Physics' started by codesushi, Dec 2, 2017.

  1. codesushi

    codesushi

    Joined:
    Sep 27, 2014
    Posts:
    22
    I have a voxel based vehicle with square wheels, and the wheels will never rotate.

    I would like to use the physics provided by wheel collider. But I want the physics to behave as if the wheels were actually round and rotating. Is this possible?
     
  2. NDSno1

    NDSno1

    Joined:
    Dec 20, 2014
    Posts:
    223
    Pretty sure you can as long as the square wheels don't have their own box collider
     
  3. BoogieD

    BoogieD

    Joined:
    Jun 8, 2016
    Posts:
    236
    You have to do your own wheel mesh rotation when using wheel colliders so what the mesh looks like is irrelevant.