var angleX = Mathf.Atan2(Input.acceleration.z, -Input.acceleration.y)* Mathf.Rad2Deg;
var angleY = Mathf.Atan2(Input.acceleration.x, -Input.acceleration.y) * Mathf.Rad2Deg;
var angleX = Mathf.Atan2(Input.acceleration.z, -Input.acceleration.y)* Mathf.Rad2Deg;
var angleY = Mathf.Atan2(Input.acceleration.x, -Input.acceleration.y) * Mathf.Rad2Deg;
本文标题:unity 加速计角度
本文链接:https://www.haomeiwen.com/subject/mkvnkttx.html
网友评论