Saturday, December 28, 2019

c++ - How to rotate to a target position over time


I know how to do rotations to vectors, but how do I rotate over time?



For instance say I made a function


RotateTo(vec2 iPosition, float iTime);

so it rotates to iPosition over iTime - how would this look? Does anyone know simple algorithm?




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...