How to make a 'permanent' gun sway?

Hey developers,

I’m looking to create a gun sway which does not return to its original position like most gun sways do (this is NOT what I am looking for). Essentially, moving your mouse changes the angle at which the gun is pointed at, ‘permanently’, until you move your mouse again.

The video below contains an example of what I’m looking for.

Any help is much appreciated. Thank you in advance.

Assuming you know how to create gun sway, you can just stop moving the gun when the mouse stops moving.

1 Like

the mouse’s movement probably affects some other rotation value, which is clamped before offsetting the viewmodel’s position every frame