Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Sudden Speed Scale Changes

Discussion in '2D' started by sieks-, Oct 19, 2019.

  1. sieks-

    sieks-

    Joined:
    Aug 29, 2019
    Posts:
    17
    Hello,

    I am new to Unity and am trying a few basics things out. I recently ran into an issue where suddenly the scale of my game's speed changed by a couple orders of magnitude. By this, I mean that whereas before I was able to use a walking speed of 1.0 for my character, I suddenly needed to use 0.01 for a similar effect, as the character started moving way too quickly.

    Anyone know what could cause this? I didn't mess with the camera's scale or anything, I'm using Time.deltaTime, but I'm sure I accidentally changed something.

    Thanks for any help
     
  2. sieks-

    sieks-

    Joined:
    Aug 29, 2019
    Posts:
    17
    I noticed that changing Time.deltaTime to Time.fixedDeltaTime changes things to normal...since Time.deltaTime is readonly, I have trouble believing my computer suddenly runs 100% slower, since the rotation of the character is still smooth and quick.