摘要: Input.acceleration 加速度最近一次测量的设备在三维空间中的线性加速度(只读);void Update () {v3=Input.acceleration;}void OnGUI(){GUI.TextArea(new Rect(50,50,300,100)," X "+v3.x+" Y "+v3.y+" Z "+v3.z);}Landscape Left:手机左横方向Y0f;右倾斜;x0f;后倾斜; 阅读全文
posted @ 2013-07-16 12:59 韦斯利yx 阅读(584) 评论(0) 推荐(0) 编辑