D
Drago Supremo
Guest
Hi guys,
i'm trying to understand how to use delta_time but checking on the docs i can't understand it completely.
According to the manual for example to adjust the speed of an object you should do:
Am i right?
But it seems to me like something is missing. For example in and ideal case, where ot and delta_time are the same value (because there was no lag) ot - delta_time would be 0, so the speed would be 0 but it doesn't make sense.
Or if the difference is 5 microseconds and spd = 3, the speed would be 15, isn't that too much?
i'm trying to understand how to use delta_time but checking on the docs i can't understand it completely.
According to the manual for example to adjust the speed of an object you should do:
Code:
speed = spd * (ot - delta_time);
ot = delta_time;
But it seems to me like something is missing. For example in and ideal case, where ot and delta_time are the same value (because there was no lag) ot - delta_time would be 0, so the speed would be 0 but it doesn't make sense.
Or if the difference is 5 microseconds and spd = 3, the speed would be 15, isn't that too much?