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

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

11. laya.d3.math.Native.ConchQuaternion [ 85%]

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

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

...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. Laya.Quaternion.lerp和Laya.Quaternion.rotationLookAt问题! [ 81%]

...输出四元数          */         public static function createFromYawPitchRoll(yaw:Number, pitch:Number, roll:Number, out:Quaternion):void { 2019-03-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Daze 相关问题 ...

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

14. CameraMoveScript.as在哪儿下载群里的有错 [ 76%]

... = yawPitchRoll.elements; if (Math.abs(yprElem[1]) < 1.50) { Quaternion.createFromYawPitchRoll(yprElem[0], yprElem[1], yprElem[2], tempRotationZ); camera.transform.localRotation = tempRotationZ; } } } } a69536989 • 2018-01-29 17:47 我的解决了,你要脚本的话联系我 a69536989 • 201...

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

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

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

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

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

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

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

...是贴一下使用代码: 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

18. discard property,please use transform's property instead [ 65%]

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

19. 2.0版本可用的CameraMoveScript.ts [ 65%]

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

20. 3D变换 · LayaAir3.0文档 · LAYABOX [ 48%]

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