質問するログイン新規登録

回答編集履歴

1

コードの記入

2019/11/29 08:14

投稿

B00L6
B00L6

スコア8

answer CHANGED
@@ -1,2 +1,11 @@
1
+ ```C#
2
+ //WASDでの操作を想定しています。
3
+ if(Input.GetKey(KeyCode.W))/*動かすもの*/.transform.posiotion += camera.transform.forward;
4
+ if(Input.GetKey(KeyCode.S))/*動かすもの*/.transform.posiotion -= camera.transform.forward;
5
+ if(Input.GetKey(KeyCode.A))/*動かすもの*/.transform.posiotion -= camera.transform.right;
6
+ if(Input.GetKey(KeyCode.D))/*動かすもの*/.transform.posiotion += camera.transform.right;
7
+ ```
8
+ としてみるのはどうでしょうか?
9
+
1
- こちらのサイトはどうでしょうか?
10
+ もしくは、こちらのサイトはどうでしょうか?
2
11
  [リンク](https://tech.pjin.jp/blog/2016/11/04/unity_skill_5/)