Tilting a first person controlled camera?

I want to tilt the camera slightly left or right when strafing (roll axis), so it feels like the player is leaning a bit in the direction they’re moving.

My only idea for accomplishing this was to try to use a set relative rotation function on the camera, but it doesn’t appear to do anything. I’m wondering if it is because my cameras pitch/yaw are being controlled by mouse input so it’s locking down all rotation?

What’s the best way to accomplish this?

1 Like

Hey Arkiras,

I’ve created this simple tilt when moving Left & Right using A & D.

4016-tiltleftright.jpg

Peace

1 Like

Thank you SilentX! I feel silly for not trying the roll input, works great

Glad it helped! I attempted something more advanced with no avail. Only reason I said simple, if you manage to do something nice! I’d love to see it.

this helps with everything. thank you, so much.

This helped me aswell but how do you go about smoothing the tilt?

You could add in an FInterpTo node to help smooth it out

1 Like

I would also like it to work more smoothly, but how exactly, can you help me?
I have the same blueprint as in the picture above.

I’m pretty new to unreal engine, is there any chance that you could tell me exactly how I could do that?

I’m pretty new to unreal engine so I was just wondering if you could tell me exactly how you would smooth this out?