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

大约有 5 项符合查询结果, 库内数据总量为 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问题! [ 87%]

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

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

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

...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. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 75%]

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

5. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 57%]

...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_社区 发布时间: 20170428