Why is the speed of rb.velocity = new Vector2(speed * Time.deltaTime, 0) noticeably lower after game over than it is upon clicking play for the first time?,Issue with rb.velocity and time.deltatime
Like the question says, I set the velocity of a game object in the start method to rb.velocity = new Vector2(speed Time.deltaTime, 0);. Upon clicking the play button, the program works as expected with the right speed, however, once the player dies and the scene is reloaded, the speed is noticeably smaller every consequent time, that is the speed has a constant value which is lower every time the player dies. So if the initial speed is 500, every subsequent speed after death seems more like 200. I'm not sure what is causing this error. ,Hello, I have a situation that I can't seem to find an answer to. In my start method for an object, I set its speed with this code - rb.velocity = new Vector2(speed Time.deltaTime, 0);. However, once the player dies and the scene is reloaded, the speed is noticeably lower than the initial speed I get when I click the start button to run the program.