【3Dゲームエンジン】Unity質問スレッド15 [転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0438名前は開発中のものです。
2015/02/08(日) 04:59:36.38ID:PgRBgtQo原因分かる人教えてくれませんか
float horizontal = Input.GetAxis("Horizontal");
transform.Translate (Vector3.right * Speed * horizontal * Time.deltaTime);
float vertical = Input.GetAxis("Vertical");
transform.Translate (Vector3.forward * Speed * vertical * Time.deltaTime);
direction.x = horizontal;
direction.y = 0;
direction.z = vertical;
transform.LookAt (transform.position + direction);
■ このスレッドは過去ログ倉庫に格納されています