Game Development Reference
In-Depth Information
SetUpRotation(targetCenter);
}
Note
Mathf.SmoothDampAngle() is the function that gradually changes the angle
given in degrees towards the target angle over time.
Mathf.SmoothDamp() is the function that gradually changes the value to-
wards the target value over time.
For more details, visit the following websites:
http://docs.unity3d.com/Documentation/ScriptReference/
Mathf.SmoothDampAngle.html
http://docs.unity3d.com/Documentation/ScriptReference/
Mathf.SmoothDamp.html
8. Finally, we will go back to the Unity editor and drag-and-drop the CameraCon-
trol script that we just created on Heroine_animate in the Hierarchy view.
Then, we can click on the play button to see the result.
Search WWH ::




Custom Search