Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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