- Home /
WheelCollider Grip
Hi !
I've been working on a car physics/control project and I faced a problem when adding torque to the wheels, with small values of torque the wheel move perfectly without loosing grip and spinning, but it accelerates too slow and the top speed is low, so i decided to give it higher values, the vehicle still accelerates slow because the wheels at start loose grip and spin, but the vehicle reach higher top speeds with higher torque, so i would like the wheel to have a higher grip, but i didn't find a proper function to it, tried to use Forward friction but didn't change anything in the vehicle's grip or maybe I didn't know how to use it, I need a solution for this no matter how difficult it is.
Thank you.
A part of the control script that adds torque :
WheelColZ[2].motorTorque = TorqueValue;
WheelColZ[3].motorTorque = TorqueValue;
Answer by FortisVenaliter · May 21, 2015 at 04:19 PM
Are you rotating the wheel colliders like wheels? If so, that causes problems, so make sure only your graphics are being rotated, not the colliders themselves.
No, I add torque to the WheeCollider(WheelColz) and sync the rotation of mesh to be as the collider.
If collider doesn't rotate, how will the car move forward? Car wheels will rotate according to the rotation of the wheel collider
That's not how wheel colliders work. The collider itself is not rotated. The collider has a hinge built into it, so you don't rotate it. Similar to how to you don't spin the whole car to rotate the wheel. The wheel turns on its own.
Answer by privatecontractor · Jan 21, 2021 at 06:23 AM
Hi @MustangLM, did you manage to solve your issue with losing grip of wheel collides? Currently have same issue with my project: with low torque everything working perfectly, but when increasing torque wheels starting burning :) So did you manage to solve it?
Nothing works bro. Really difficult to figure out.