- Home /
How to fix WheelColliders in unity 5?
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.
Video with my 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);
Comment
Your answer
Follow this Question
Related Questions
For Some reason, collider check has extra collider. 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How can I access the ^ key with qwertz keyboard-layout 2 Answers
Enemy Ai is not working as planned 0 Answers