Time.deltaTime suddenly makes my capsule not move at all

No matter how high I am making my steer/moveSpeed, my capsule doesn’t move with the Time.deltaTime. It works just fine when I remove it.

1 Like

Hi! Welcome back to the community!

Your object is actually moving, look into the inspector and see how the object’s transform changes in very small increments when you press a key. The issue is that ‘Time.deltaTime’ usually returns a very small value, so you’ll have to increase the ‘steerSpeed’ and ‘moveSpeed’ values in the inspector by a lot.

Hope this helps!

1 Like

I didn’t realize the serialized field values on the inspector overwrote the values I had put into vs code so instead of 300 and 30, I was using 0.1f and 0.01f. Thanks!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms