[過去ログ]
【ゲームエンジン】Unity初心者質問スレBuild4 (1002レス)
上
下
前
次
1-
新
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
436
: 2020/05/12(火)21:52
ID:fJoHzdFR(1)
AA×
>>426
[240|
320
|
480
|
600
|
100%
|
JPG
|
べ
|
レス栞
|
レス消
]
436: [sage] 2020/05/12(火) 21:52:42.21 ID:fJoHzdFR >>426 public class Move : MonoBehaviour { //省略 private bool flag; private float time; //省略 void Update() { if(flag) { if(time > distance_two / speed) { time = distance_two / speed; flag = false; } float present_Location = time * speed / distance_two; transform.position = Vector3.Lerp(StartPosition.position, GoalPosition.position, present_Location); time += Time.deltaTime; } } //buttonで呼ぶ public void MoveStart() { flag = true; } } http://mevius.5ch.net/test/read.cgi/gamedev/1585478112/436
省略 省略 で呼ぶ
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 566 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
ぬこの手
ぬこTOP
0.031s