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

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

1. Laya.Quaternion.lerp和Laya.Quaternion.rotationLookAt问题! [ 100%]

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

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

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

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

3. 已知方向向量怎么转欧拉角 [ 90%]

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

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

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

5. 2.0版本可用的CameraMoveScript.ts [ 86%]

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

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

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

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

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

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

8. discard property,please use transform's property instead [ 81%]

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

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

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

10. LayaAir3D 坐标系统与矩阵变换 [ 58%]

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

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