回答編集履歴
1
追記
answer
CHANGED
@@ -2,4 +2,29 @@
|
|
2
2
|
|
3
3
|
---
|
4
4
|
|
5
|
-
というか、過去にも同様な質問がある([こちら](https://teratail.com/questions/157150)とか[こちら](https://teratail.com/questions/183348))のですが、ちゃんと調べましたか?
|
5
|
+
というか、過去にも同様な質問がある([こちら](https://teratail.com/questions/157150)とか[こちら](https://teratail.com/questions/183348))のですが、ちゃんと調べましたか?
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
追記:
|
10
|
+
|
11
|
+
```C#
|
12
|
+
float time = 0f;
|
13
|
+
|
14
|
+
void Update()
|
15
|
+
{
|
16
|
+
time += Time.deltaTime;
|
17
|
+
|
18
|
+
Vector3 pos;
|
19
|
+
if (time < 1f)
|
20
|
+
{
|
21
|
+
pos = Vector3.Lerp(new Vector3(0, 0, 0), new Vector3(0, 5, 0), time);
|
22
|
+
}
|
23
|
+
else
|
24
|
+
{
|
25
|
+
pos = new Vector3(0, 5, 0);
|
26
|
+
}
|
27
|
+
|
28
|
+
Debug.Log(pos.ToString("G"));
|
29
|
+
}
|
30
|
+
```
|