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

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

11. 已知方向向量怎么转欧拉角 [ 82%]

... 1 个回复 Laya_Aaron 赞同来自: Quaternion   public static function createFromYawPitchRoll(yaw:Number, pitch:Number, roll:Number, out:Quaternion) 2019-04-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 ...

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

12. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 79%]

...ya.Sprite3D; let newRot = new Laya.Quaternion(0, 0, 0, 0); Laya.Quaternion.createFromYawPitchRoll(0, 0* (Math.PI / 180), 0, newRot); this.pivot.transform.rotation = newRot; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.b...

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

13. 2.0版本可用的CameraMoveScript.ts [ 78%]

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

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

14. 怎么让模型原地依照Y轴旋转到 我指定的角度? 角度 如何 转换成 Y轴旋转 的四元数? [ 77%]

...是贴一下使用代码: var q:Quaternion = new Quaternion(); Quaternion.createFromYawPitchRoll(45,0,0,q);   2017-09-19 1 0 分享 微博 QZONE 微信 avpvsdoom 赞同来自: box.transform.rotate(new Vector3(0,45,0),true,false); 我知道 这个方法可以旋转 但是这个方法不能写在 La...

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

15. 3D旋转如何做tween缓动?目前尝试了localRotationEuler,rotationEuler。 [ 76%]

...以创建临时变量解决 3.transform.rotation,可以通过Quaternion.createFromYawPitchRoll转欧拉角为四元数 万向锁的问题,可以根据自身旋转需求避免产生锁死情况,查下相关资料。 2017-08-30 0 1 分享 微博 QZONE 微信 程程 赞同来自: Laya.Tween.to(th...

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

16. discard property,please use transform's property instead [ 74%]

...a.timer.frameLoop(1, null, function () {             Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion);             var _direction = directionLight.direction;             Laya.Vector3.transformQuat(_direction, _quaternion, _direction);             directionLigh...

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

17. laya.d3.math.Native.ConchQuaternion [ 71%]

...Quaternion):void[static] 从旋转矩阵计算四元数 ConchQuaternion  createFromYawPitchRoll(yaw:Number, pitch:Number, roll:Number, out:ConchQuaternion):void[static] 从欧拉角生成四元数(顺序为Yaw、Pitch、Roll) ConchQuaternion  dot(left:*, right:ConchQuaternion):Number[static]...

来源: Laya2.0_api 发布时间: 20190513

18. laya.d3.math.native.ConchQuaternion_API3.0 [ 70%]

...eZ scaling add createFromAxisAngle createFromMatrix3x3 createFromMatrix4x4 createFromYawPitchRoll dot invert lerp lookAt multiply rotationLookAt rotationMatrix slerp Constructors constructor new ConchQuaternion(x?: number, y?: number, z?: number, w?: number, nativeElements?: Float32Array): ConchQuat...

来源: Laya3.0_api 发布时间: 20231102

19. 物体随着鼠标滑动旋转脚本 [ 67%]

...  if (Math.abs(yprElem[1]) < 1.50) {         Laya.Quaternion.createFromYawPitchRoll(yprElem[0], yprElem[1], yprElem[2], this.tempRotationZ);         this.Obj.transform.localRotation = this.tempRotationZ;     } } //鼠标按下Object随着鼠标滑动得出相应的坐标值 ...

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

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

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