I've implemented a radial aiming system for the platform behaviour with some weapon recoil using the method outlined in dop2000's excellent tutorial (thank you!). I've adapted this to a gamepad, and it's working well using the following events: -
However, I'd like to add some radial recoil to complement this, and I think I can use the same method, but I'm struggling with how to adapt the expressions to fit this radial movement instead of the single opposite angle that the gun is firing. Could anyone suggest how I might do this?
The end result would be something like this (i've roughly simulated the movement manually to show this - the quality of the gif makes it a little hard to see, but the gun kicks both backwards and radially around the aiming arc of the player, and then resets to default position): -