I need an object to rotate from its original rotation on its y axis to the cameras rotation on the y axis.
Here is my code:
if(moving){
transform.rotation = Quaternion.Slerp (transform.eulerAngles.y, camera_rot, Time.time * 10);
}
I am getting this error message:
The best overload for the method ‘UnityEngine.Quaternion.Slerp(UnityEngine.Quaternion, UnityEngine.Quaternion, float)’ is not compatible with the argument list ‘(float, float, float)’
I think I am not using the slerp correctly.