how do i make a car boost, i mean like
hasBoost = true;
when button “e” pressed car should get some force to get more speed.
i think this could be done with
Vector3.forward * Time.deltaTime; , I don’t know much scripting could someone help me in scripting this please
I really don’t know why people voted you down.
This could be done in many variant ways, as Muuskii offered you.
I personally don’t like the Translate movement, since it doesn’t feel like real physics.
So you should go for AddForce, and for ForceMode I would suggest using Impulse.
Now, you might encounter some issue with GetKey function, it is called whenever the key is pressed, I think GetButtonDown (which is called whenever the key is held down) would help a lot better.