Do you know about term "knockback" or "kickback", It's a force. Imagine a gun in your hand, when you shoot a bullet, you receive a backward force on the gun and your hand. That's a knockback[ Recoil ].
I want someone to code just that module.
Just Imagine a 2D scene in Unity. We have a 2D Gun one button down I don't want the gun to shoot anything, but to rotate according to the knockback force.
Let's say the 2D gun is at 45 degrees (obviously in z), we shoot once and the gun starts rotating, after a couple seconds, if we shoot again, it should rotate in a particular to the knockback of that degree.
It should not be a difficult task I hope so. Make sure we can have the option to tweak the different masses of guns affecting the knockback and rotation.
For more detailed explanation, ping me.