纳金网
标题:
transform.Rotate(0,Input.GetAxisRaw("Fire1"),0)为何不绕y轴
[打印本页]
作者:
雅雅
时间:
2013-6-29 16:12
标题:
transform.Rotate(0,Input.GetAxisRaw("Fire1"),0)为何不绕y轴
难道不应该是在垂直方向上旋转么?为什么老是水平方向上转?。。
#pragma strict
function Start () {
}
function Update () {transform.Translate(Input.GetAxis("Horizontal"),0,Input.GetAxis("Vertical"));transform.Rotate(0,Input.GetAxisRaw("Fire1"),0);}
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5