Hi,
I am pretty familiar with the lerp function and its variants by know, but am now in need of creating a specific kind of rotation, with equal/ constant angular speed throughout the whole transition.
Basically, I need to rotate a transform from a to b with uniform speed, or with acceleration control, alternatively. The lerp function instead ‘accelerates’ and ‘decelerates’ when it nears the ‘to’ value, which does not fit my purpose.
Despite my numerous attempts, I was unable to come up with a solution.
What should I look for to achieve this?
Is it possible to create a constant angular speed rotation with Unity’s builtin functions, or do we need a special formula? Alternatively, what’d be the way to dynamically alter the T parameter in lerp to at least ‘simulate’ uniform speed?
I’m grateful for any advice. This problem is driving me mad.