码迷,mamicode.com
首页 > 移动开发 > 详细

1.1 摄像机的移动

时间:2017-08-16 17:21:08      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:vertica   nsf   tran   get   time   oid   移动   speed   摄像机   

void Update () {
float x = Input.GetAxis ("Horizontal") * Time.deltaTime * speed;
float z = Input.GetAxis ("Vertical") * Time.deltaTime * speed;
transform.Translate (x, 0, z);
print (x);
}

1.1 摄像机的移动

标签:vertica   nsf   tran   get   time   oid   移动   speed   摄像机   

原文地址:http://www.cnblogs.com/xiajing12345/p/7373764.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!