Tweening

Blitz3D Forums/Blitz3D Programming/Tweening

Thanks for your time to spend and your advise.
The tweening code is not mine. It comes from Blitz castle demo and I have to say that I don't understand its all aspects.
For example I don't understand why the program execution exits from the Repeat-Until loop in Frame_Capture() function since FrameElapsed is constantly grow.
I suppose the deltatiming is the time that corresponds to 1 Frame Per Second (FPS). That's why I multiply the velocity (velpitch, velyaw, velroll) with the 1/FPS factor (remember this simple formula: distance = velocity * time).
I want to avoid the use RotateEntity command because I have already build a whole set of functions based in the TurnEntity command.