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

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

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

...= new Vector3(0, 45, 0); 不过在这里还是贴一下使用代码: 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); 我知道 这个方法可...

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

2. Laya.Quaternion.lerp和Laya.Quaternion.rotationLookAt问题! [ 92%]

Laya.Quaternion.lerp和Laya.Quaternion.rotationLookAt问题! 图1想实现图2的效果,蓝球跟随红球旋转 在这里卡住了: Laya.Quaternion.lerp(left四元数,right四元数b,插值比例,输出四元数) Laya.Quaternion.rotationLookAt(方向,上向量,输出四元数) 里...

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

3. 如何通过四元数旋转 [ 84%]

...a里如何实现unity里这句: GetComponent<Rigidbody>().AddForce ( Quaternion.Euler (new Vector3(transform.rotation.eulerAngles.x,transform.rotation.eulerAngles.y,transform.rotation.eulerAngles.z)) *new Vector3(25f*length,0,0), ForceMode.VelocityChange); 大概的须求是2d场景,旋转...

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

4. 有没有四元数右乘三维向量的算法? [ 83%]

有没有四元数右乘三维向量的算法? 类似unity里面Quaternion*Vector3可以得到一个向量转换后的向量。 2018-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复   赞同来自: 百神...

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

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

...).getChildByName("MoveBlockPivot") as Laya.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...

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

6. LayaAir3D 坐标系统与矩阵变换 [ 79%]

...旋转,会使这个方体根据世界坐标系的坐标轴进行旋转 //Quaternion四元数,常用来表示3d旋转,可以根据各个轴的旋转弧度计算出 //Quaternion.createFromYawPitchRoll(yaw:Number, pitch:Number, roll:Number, out:Quaternion) box.transform.rotation = new Quaternion(x,...

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

7. LayaAir3D UnityPlugin 1.7.16 [ 71%]

...DataManager:getComponentsData(GameObject, JSONObject, JSONObject, Vector3, Quaternion, Vector3, String&) LayaExport.DataManager:getGameObjectData(GameObject, String, JSONObject, Boolean) LayaExport.DataManager:getGameObjectData(GameObject, String, JSONObject, Boolean) LayaExport.DataManager:getG...

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

8. viewportPointToRay产生的射线始终有偏差,是为什么? [ 65%]

... 3.95000958442688, 1.06434166431427); camera.transform.rotation = new Laya.Quaternion( -0.19387270510196686, -0.6291995048522949, -0.16616787016391754, 0.7341046333312988); let scene: Laya.Scene = new Laya.Scene(); scene.addChild(camera); scene.addScript(SceneScript); Laya.stage.addChild(scene); } }...

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

9. unity 导出问题 animator出错 [ 62%]

...eObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild)...

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

10. unity 3d 骨骼动画资源到处 KeyNotFoundException: The given key was not present in the dictionary 问题 [ 61%]

...eObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild)...

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