Search Unity

Car not slide by gravity

Discussion in 'Physics' started by sinvent, Dec 22, 2015.

  1. sinvent

    sinvent

    Joined:
    Oct 24, 2014
    Posts:
    4
    Good day!

    I have problem with my wheelcollider car.
    Car not slide by gravity with new Unity5. In Unity4 this cod work great.

    if(CurrentSpeed == 0)//We ready to roll
    {
    foreach (WheelCollider col in WColBack)
    {
    col.motorTorque = 0.0f;//reset
    col.brakeTorque = 0f;//reset
    }
    foreach (WheelCollider col in WColForward)
    {
    col.motorTorque = 0.0f;//reset
    col.brakeTorque = 0f;//reset
    }
    }

    But now car stay in place and not roll by gravity
    Anyone pleace help!

    Best Regard, Nick
     
  2. sinvent

    sinvent

    Joined:
    Oct 24, 2014
    Posts:
    4
    Decide this problem. Read car unity example.
    Thanks