我是靠谱客的博主 鲜艳白猫,这篇文章主要介绍LayaAir2.x Quaternion,现在分享给大家,希望可以做个参考。

复制代码
1
2
Laya.createFromYawPitchRoll(yaw: number, pitch: number, roll: number, out: Quaternion): void Laya.getYawPitchRoll(out: Vector3): void

pitch: x轴的旋转角度
yaw: y轴的旋转角度
roll: z轴的旋转角度

复制代码
1
2
3
Laya.rotationLookAt(forward: Vector3, up: Vector3, out: Quaternion): void //如果 forward 等于 new Laya.Vector3(1,0,-1), up 等于 new Laya.Vector3(0,1,0)。 //则eulerAngleY等于45

最后

以上就是鲜艳白猫最近收集整理的关于LayaAir2.x Quaternion的全部内容,更多相关LayaAir2.x内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(71)

评论列表共有 0 条评论

立即
投稿
返回
顶部