WOW! i really have hard time to understand this lecture

Hi Guys…
I got some problems to understand this…

Firstly… Can someone explain me what is DeltaTime?

Secondly this code

auto CorrectionAcceleriation = -SlippageSpeed / DeltaTime*GetRightVector();

Someone?

Thank you…

DeltaTime is the current time minus the time at the end of the last frame. (i.e. The elapsed time of the tick)

That line of code is just applying an equal and opposite force to prevent the tank from sliding sideways. You will see DeltaTime featured in a lot of operations like that. In this instance it is to ensure exactly the right amount of force is applied that frame, which becomes more relevant when we start dealing with networking across multiple clients whom may not have the same framerate.

Don’t be discouraged if it doesn’t make complete sense to you right now. These things take time to learn, and you aren’t alone!

2 Likes

Wow… Great… i understand now…
Ryan!! thank for your encouraging words… It really nice to hear this…

I really want to learn making games…
There are now words to describe how valuable this course and people around it…
Great thanks…

1 Like

Privacy & Terms