Car Movment Script not fully working!!!!!!!

I’m creating a kart game and when I stop the kart the wheel dont stop and the kart takes a very long time to stop and reverse

![alt text][1]

Im not sure why the wheels are moving so fast and not stopping when brakimh, car is going so slow and taking ages to go into reserve?

![alt text][2]

This is the code im using

     using System.Collections;
     using UnityEngine;
     public class Car : MonoBehaviour
         public float maxTorque = 5000f;
         public float speed = 5000f;
         public Transform centerofMass;
         public WheelCollider[] wheelColliders = new WheelCollider[4];
         public Transform[] tireMeshes = new Transform[4];
         private Rigidbody m_rigidBody;
         void Start()
             m_rigidBody = GetComponent<Rigidbody>();
             m_rigidBody.centerOfMass = centerofMass.localPosition;
         void Update()
         void FixedUpdate()
             float steer = Input.GetAxis ("Horizontal");
             float accelrate = Input.GetAxis ("Vertical");
             float finalAngle = steer * 45f;
             wheelColliders [0].steerAngle = finalAngle;
             wheelColliders [1].steerAngle = finalAngle;
             for (int i = 0; i < 4; i++)
                 wheelColliders_.motorTorque = accelrate * speed * maxTorque;        }_


void UpdateMeshesPositions()
for(int i = 0; i < 4; i++)
Quaternion quat;
Vector3 pos;
wheelColliders*.GetWorldPose(out pos, out quat);*

tireMeshes*.position = pos;*
tireMeshes*.rotation = quat;*

P.S i have tried lowering damper to 100 and that hasnt done anything to fix it
also my RigidBody mass is set to 100


I have 3 suggestions…

  1. It looks like it just has really bad friction. I would try turning up the friction or somthing like that. Have you checked the friction on the road? I don’t think the problem is in the script.

  2. I, personally have not had any luck with wheel colliders. I have however had some luck with capsule colliders and a hinge constraint. (If you use the hinge as the motor and the axis to turn around.) I don’t know how you have any of this set up, but what happens if you replace the wheel colliders with capsule colliders, and then coded the steering without the wheel colliders.

  3. It would be a lot easier to help if i had access to the car prefab you were using, along with the scripts and stuff so I could test it out and see what would help. But that is all the help I can give you. Maybe someone else will have better advice?

Good Luck!