To Lerp or not to Lerp

I knew I was likely over-engineering my solution… the given solution is not really Lerping in the sense that I consider a real Lerp to be…

But I suppose as long as its idle angle goes back to about 0° the values used are probably close enough…
And it avoids the issue I had about the player pointing the wrong way when a sprite flip was overwritten by the lerping coroutine…

The other issue I observed (the flipping not really being applied into the tilt angles) is still present though… Going forward in one direction tilts the head downwards (and going back that direction it points up) while goind the other direction the player’s head is pointing up when moving forward and pointing down when backing up…

Try making the 3 Quaternion lines that Stephen posits into accessing .localRotation instead of .rotation.

Privacy & Terms