Your damping may be better at around 100 then the springs will keep all wheel colliders on the ground better. It may be all too stiff.
What is the RigidBody mass?
I have my RigidBody mass set to 100
I tried putting the damping to around 100 but that didnt change anything put it even less and that didnt change anything ether
We can use the drag, when you stop the accelerator adds the drag to 1 and out until you see how far you want the car to stop. When you load the accelerator it adds the drag to zero by default again.
I figured you were at an elementary stage so just gave the specifics for an Update function.
Now considering your code you have posted above, just copy the if /else part with {} and paste that into your Update function. You will also have to change my ‘rb’ variable name to what you already have established in Start() ‘m_rigidBody’.
It could be in any script that has an Update() function because they all get called each frame but would need to use a different method of getting at the rigidBody. Just depends on how you construct your code. You need to understand all this because no one will write all your code for you.
The ‘B’ keyboard button will be your brakes. If you want to use a joystick button or have auto brakes or whatever, that is an entirely different subject and more complex.
We all had to start somewhere. You will suddenly have an ‘I get it’ moment when the light bulb switches on in your head then you will be coding all kinds of stuff.