Time.deltaTime issue

hey i noticed that my code dont let me fly if i add Time.deltaTime

Hi,

Welcome to our community! :slight_smile:

Have you already tried to increase the value of alturaSalto in the Inspector? If so and if that did not fix the problem, feel free to remove Time.deltaTime.


See also:

2 Likes

I agree with Nina. The value of 2 might be too low to realize a noticeable visual effect when playing the game.

If the code is working even just a little bit, you’ll be able to see the small changes reflected in the Transform properties.

You may want to test an exaggerated value like 2000 and see if the code is really broken, or if the value is just too low, like Nina said. If the exaggerated value works, then it’s just a matter of tuning into a value that you like.

1 Like

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

Privacy & Terms