I made a script that a will add to the weapon like in call of duty( WILL FOLLOW IT SMOTHER )
Everything is working fine BUT the ammount of the distance it makes depends on the game FPS, how can i fix it?
var Smoothness : float = 25;
var mouselookScript : GameObject;
function Update () {
transform.rotation=Quaternion.Slerp(transform.rotation,Quaternion.Euler(mouselookScript.GetComponent("mouselookScript").xRotation, mouselookScript.GetComponent("mouselookScript").yRotation, 0), Time.deltaTime*Smoothness);
}