unity node
2015年2月9日 星期一
unity - get keyboard arrow ,
float
moveX
=
Input
.
GetAxis
(
"
Horizontal
"
);
float
moveY
=
Input
.
GetAxis
(
"
Vertical
"
);
Vector3
movement
=
new
Vector3
(
moveX
,
0.0f
,
moveY
);
rigidbody
.
velocity
=
movement
*
speed
;
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言