I have a car game and depending on how fast the computer is depends on how fast the car travels. How can i make it so it travels the same speed in every computer? :?:
Also when i am in fullscreen my car moves slower.
I have a feeling it is the frames rate. How do i control the maximum frames rate or the minumum frames rate? if not how can i fix the problem?
So when you move the car forwards, instead of going
car.position.z += carSpeed;
you go
car.position.z += carSpeed * Time.deltaTime;
just keep in mind that Time.deltaTime is literally the amount of time that’s occurred since the last frame (and Update() is called every frame) so to get the correct result you would want carSpeed to be the distance moved in one second.