I use the
lerp() function to smoothly move objects in my ThreeJS virtual world. Works great. But how do I do the same for
rotation? My virtual world gets updates from my server on where other players in the world currently are in the world. Then I LERP the player over to the new position. But I also want to change their rotation smoothly too.
So, if last update the user’s rotation was pointing straight ahead in the negative Z direction, and this update they turned 90 degrees, I want to smoothly change over to that new rotation instead of “jerking” the world object that is their avatar to the new rotation. I am hoping I don’t have to user “tween” or write my own code to do this. Is there a quick way to do this in ThreeJS?