Search Unity

Wheel collider problem when wheeling a bike.

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

  1. vagelis199

    vagelis199

    Joined:
    Jul 27, 2012
    Posts:
    36
    Been struggling with this problem long time now using rn (unity 2018-2.5f1) but basicly when a motorbike (Rigidbody) rotates in its x axis (does a Wheelie or stoppie) the wheel colider pivot or ground point rotates with it making it imposible to wheelie or do a stopie without start bugging, i understand that this way its possible to ride slops and etc but its not ideal for a motorbike doing a wheelie, does anybody found a solution or knows how to help ? would be appreciated Heres an image https://ibb.co/qCFdvZr , Theres no possible way to make the wheels always look down no mater the roots rotation :|
     
  2. radialxawn

    radialxawn

    Joined:
    May 13, 2019
    Posts:
    29
    The wheel collider only have one raycast down so you cant do a wheelie, i think you should use a multi raycast wheel method from asset store or make one your self.
     
  3. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    1,554
    You may use a separate rigidbody for the front part of the bike, attached to the main body via joint. Then you could adjust the angle of this rigidbody and the WheelCollider would follow that rotation.