[]rotate设置的值和获取的值不一样
this.transform.rotate(new Vector3(0, 1.68, 0));
trace(">>>>>rotate>>>>" + transform.localRotation.y);
trace(">>>>>rotate>>>>" + transform.rotation.y);
设置的旋转和输出的旋转值不一样,这是什么情况?如何能获取实际的值?
trace(">>>>>rotate>>>>" + transform.localRotation.y);
trace(">>>>>rotate>>>>" + transform.rotation.y);
设置的旋转和输出的旋转值不一样,这是什么情况?如何能获取实际的值?
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
183*****755
赞同来自:
你获取的localRotation,rotation都是四元数
参考下这个http://ask.layabox.com/question/1745、