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