复制代码
1
2Laya.createFromYawPitchRoll(yaw: number, pitch: number, roll: number, out: Quaternion): void Laya.getYawPitchRoll(out: Vector3): void
pitch: x轴的旋转角度
yaw: y轴的旋转角度
roll: z轴的旋转角度

复制代码
1
2
3Laya.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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复