From 61b61632ff30a71f7603e9308a5e940a4539eaf1 Mon Sep 17 00:00:00 2001 From: magn9775 Date: Fri, 26 Apr 2024 18:32:28 +0200 Subject: [PATCH] idk --- Assets/Scripts/GameManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index 07adcda..90352f1 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -99,7 +99,7 @@ public class GameManager : MonoBehaviour { int checkpointsCollected = player.GetComponent().checkpointsCollected; carRB = player.GetComponent(); - var carVel = (Mathf.Abs(carRB.velocity.x) + Mathf.Abs(carRB.velocity.y) + Mathf.Abs(carRB.velocity.z))*5; + var carVel = Mathf.Round((Mathf.Abs(carRB.velocity.x) + Mathf.Abs(carRB.velocity.y) + Mathf.Abs(carRB.velocity.z))*6); speedometer.SetText(carVel.ToString()); if (checkpointsCollected == checkpoints.Count())