• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 24 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0024 秒)

21. 3D变换 · LayaAir3.0文档 · LAYABOX [ 54%]

... Transform3D._tempVector30); rot = Transform3D._tempVector30; } Quaternion.createFromYawPitchRoll(rot.y, rot.x, rot.z, Transform3D._tempQuaternion0); if (isLocal) { Quaternion.multiply(this._localRotation, Transform3D._tempQuaternion0, this._localRotation); this.localRotation = this._localRotation; ...

来源: Laya3.0_文档 发布时间: 20230821

22. LayaAir3D 坐标系统与矩阵变换 [ 53%]

...示3d旋转,可以根据各个轴的旋转弧度计算出 //Quaternion.createFromYawPitchRoll(yaw:Number, pitch:Number, roll:Number, out:Quaternion) box.transform.rotation = new Quaternion(x, y, z, w); //设置局部旋转,会使这个方体根据自身坐标系的坐标轴进行旋转 //如果...

来源: Laya_社区 发布时间: 20161223

23. 3D中摄像机绕物体旋转该如何实现? [ 52%]

...me * this.damper); //Update transform position and rotation. // Quaternion.createFromYawPitchRoll(this.CurrentAngles.y,this.CurrentAngles.x,this.CurrentAngles.z,this.tempRotationZ) // this.transform.rotation = this.tempRotationZ; this.CurrentAnglesTemp.x = -this.CurrentAngles.x; this.CurrentAnglesTe...

来源: Laya_社区 发布时间: 20170714

24. 官方案例里摄像机绕物体旋转脚本的问题 [ 51%]

...me * this.damper); //Update transform position and rotation. // Quaternion.createFromYawPitchRoll(this.CurrentAngles.y,this.CurrentAngles.x,this.CurrentAngles.z,this.tempRotationZ) // this.transform.rotation = this.tempRotationZ; this.CurrentAnglesTemp.x = -this.CurrentAngles.x; this.CurrentAnglesTe...

来源: Laya_社区 发布时间: 20190224