When I play my rally project in Unity, car going to acceleration, but when I release the button on keyboard, my script set wheelcolliders.motorTorque = 0; and wheelcolliders still keeps car accelerating.
I tried to go through scripts step by step, then I was also search on Google, but I couldn’t find a problem.
kolaCollider[0].motorTorque = Tw * (torqueSplitFront / 2f);/*tw is set to
0, when I stop pressing button */
kolaCollider[1].motorTorque = Tw * (torqueSplitFront / 2f);
kolaCollider[2].motorTorque = Tw * ((1f - torqueSplitFront) / 2f);
kolaCollider[3].motorTorque = Tw * ((1f - torqueSplitFront) / 2f);