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

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

21. LayaAir3D 坐标系统与矩阵变换 [ 39%]

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

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

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

...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

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

...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

24. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 37%]

...n(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRotationZ); this.tempRotationZ.cloneTo(this.camera.transform.localRotation); this.camera.transform.localRotation = this.camera.tra...

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