Skip to content

Commit 5797801

Browse files
committed
Improve Camera Work
1 parent 67e3397 commit 5797801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Demo/DemoCameraWork.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public void SetTime(double time)
3636
else if (t < c4)
3737
{
3838
float rate = (t - c3) / (c4 - c3);
39-
transform.position = new Vector3(0f, Mathf.Lerp(2f, 25f, rate * rate), 11f);
40-
transform.LookAt(new Vector3(0f, 1f, 11f + rate * 23f));
39+
transform.position = new Vector3(0f, Mathf.Lerp(2f, 25f, Mathf.Pow(rate, 3f)), 10f);
40+
transform.LookAt(new Vector3(0f, 1f, 11f + rate * 11f));
4141
}
4242
}
4343

0 commit comments

Comments
 (0)