Comments and answers for "Bank Camera Based On Rotation Delta"
http://answers.unity.com/questions/444515/bank-camera-based-on-rotation-delta.html
The latest comments and answers for the question "Bank Camera Based On Rotation Delta"Answer by LyanApps
http://answers.unity.com/answers/444582/view.html
I would suggest: http://docs.unity3d.com/Documentation/ScriptReference/Quaternion.RotateTowards.html
//Save the current Rotation
currentRotation = transform.localRotation;
//Calculate the rotation you want to have
targetRotation = Quaternion.Euler(transform.localEulerAngles.x, transform.localEulerAngles.y, transform.localEulerAngles.y + angleDifference);
//Use RotateTowards to find the in between rotations based on angular step
transform.localRotation = Quaternion.RotateTowards(currentRotation, targetRotation, speed*Time.deltaTime);Thu, 25 Apr 2013 03:07:01 GMTLyanApps