FPS - tilt arms and gun while strafing

I want to replicate DOOM Eternal’s feature. When you strafe, your weapon tilts slightly to your strafe direction. I don’t want to tilt whole camera. Any solutions?

I tried some things and my solution seems over-engineered for me and doesn’t completely work. It tilts gun with Ease function, but when I stop strafing, it snaps back without any interpolation. I couldn’t solve it.

My idea is to do it by rotating the arms mesh, not with the animations

How about
If strafing, variable Roll=5, else Roll=0.
On tick, Rinterp To set rotation on weapon.
Hands either already follow weapon with IK, or IK can then also be adjusted.

You can use FABRIK to rotate the arm which will rotate (roll) any attached static or skeletal mesh.

Thanks! I tried using Rinterp before, and failed. After seeing your comment I tried again and this time managed to do it.

1 Like