LayaAir2.x Quaternion

Laya.createFromYawPitchRoll(yaw: number, pitch: number, roll: number, out: Quaternion): void
Laya.getYawPitchRoll(out: Vector3): void

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

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
原文地址:https://www.cnblogs.com/kingBook/p/14264663.html