Tweening

Blitz3D Forums/Blitz3D Programming/Tweening

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

It works!, it works!. Thanks to you!
I used the b32's last formula and I made a final touch as Sir Gak noted.
I have a function named TransformMeshes (in the main program loop) where I calculate for all my meshes the delta_rotation using a constant angle_velocity
delta_rotation = angle_velocity * delta_time
TurnEntity myentity, 0, delta_rotation, 0

But what is the delta_time?. Actually is the time between 2 successive calls of TransformMeshes and simply I can't change it. delta_time is not constant!.
So If I want to get the total rotation that corresponds to the end of 1000 msecs I have to change the angle_velocity only for the LAST delta_time just before the end of 1000 msecs