Smooth Rotation Help

Hi there,

I’ve added a yaw controller input node and multiplier to the First Person Character BP in hoping to try and rotate the character on left right key press, it works but its very choppy as it turns and as I need to screen record the gameplay, is there anything that can be done to smooth this rotating motion via the BP?

I’d really appreciate some help.

D.

Hello @Delta1 ,

You could try using a Spring Arm , it might give you the smooth effect you’re looking for.

First, on the left side where it says Add, add a SpringArm component.


Then, in the FirstPersonCamera, copy the Location and disable Use Pawn Control Rotation.

After that, go back to the SpringArm, paste the copied Location, and attach the FirstPersonCamera to it.

Inside the SpringArm, enable Use Pawn Control Rotation and set Target Arm Length to 0.

Finally, look for Enable Camera Rotation Lag, turn it on, and tweak Camera Rotation Lag Speed ,the lower this value, the smoother the rotation will be.

I’ll also leave the documentation here in case you want to take a look.

Let me know if it works!

While SpringArm could help, it would more of a band-aid over the problem which will still exist.

First of all, you are adding yaw value that’s framerate dependent, so with varying FPS you might be rotating more or less per second. To fix that, multiply Action Value by delta time (GetWorldDeltaSeconds node). It will cause the value to be most likely super low, so you might want to multiply that by desired value(like 10 or more). This way while you hold arrow key, you will be adding constant yaw value per second.

Also a video could be nice if the issue still persist.