I want to create an equation determining how fast a gun recovers back to its center after it has fired. I have a weapon system functioning based on constants (recoil amount, bullet spread, etc.) similar to modern FPS games. The weapon system is creating great realistic recoil and bullet spread when the weapons are fired. However, at what speed should each weapon return back to its center?
How do I implement it realistically? Games such as Battlefield and COD have stats for Recoil Decrease and Centerspeed respectively, however how these stats are used to determine a time or speed at which the gun rotates itself back to zero mystifies me.
I am experimenting with using a simple lerp between the weapon's current rotation (caused by recoil) to its original rotation at zero. The issue is how to determine that rate at which it returns in a realistic way. Is there a common way that this is implemented?