Why Are We Using Time.DeltaTime?

We working with Rigidbody which is a part of unity physics system and as i know from your 2D Course when we are working with physics system. We don’t need to use time.deltatime because unity will automatically take care of frame Independecy when we are working with its physics system and please correct me if i am wrong.

Hi,

You are right. I assume we use Time.deltaTime here because we call the Rigidbody method in the Update method. Aaaactually, it is supposed to be called in FixedUpdate. However, since this course caters to beginners, Rick didn’t want to introduce too many concepts at once. If you are already familiar with Unity, feel free to rework the code in your project. :slight_smile:


See also:

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