Hi! I’m trying to get my player character to smoothly rotate towards the direction of velocity so that forward or backward + left or right are interpreted as forward (1,0,0). In other words if I put an arrow on the capsule, diagonal would be forward on the diagonal relative to the camera. It should work with backward running as well, so the diagonal would rotate inverse as well.
It’s also important that when strafing the player does not rotate towards velocity as it would undo the strafing animation.
I can get the velocity, normalize it and set actor rotation towards the normalized vector with an Rinterp node on the yaw but not getting accurate results. Would really appreciate some help to figure it out.
Thanks in advance!