Hot answers tagged rotation
Have a currentRotation and a desiredRotation you will also want some helper function to give you the shortest angle distance, so let's just call that angleDist or whatever. (You want that because sometimes going clockwise is shorter or vice versa). Then all you need is to interpolate between them somehow. currentRotation += expFactor * ...
Only top voted, non community-wiki answers of a minimum length are eligible