hello,
in the practice to make an ongoing rotation of the robot with
func _process(delta):
rotate(0.05)
I just wondered how fast that can go on different computers. So the rotation will update every frame by 0.05 radians. On a faster computer I will get more frames per second, so the robot will rotate much faster?
How does it work under the hood? The action is triggered every frame, but rotates smoothly. So let's say the rotation starts and reached 0.0123134 radians - then the next frame kicks in and rotates the object again for 0.05 radians.
Is the value of the rotation from the first frame stored somewhere or will it simply be overwritten by the next frame? I guess when I stop the rotation at some point it will stop the process and the rotation entirely - regardless of any "information" in the frames before right? The actual "active frame" is always the step the computer does, is it?
I'm just curious. :D
Yeah of course the next lesson explained it... xD so delta takes care of that. I used delta before, but didn't really know the purpose. xD