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

大约有 972 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0045 秒)

611. 给带有rigitbody3d 组件的物品applyforce后,物体成功运动了,要怎么获得其速度,我取linearVelocity 但是值好像都是不对的.. [ 62%]

...13 • 2020-03-30 17:01 同问,偏差的非常大 let vectory = new Laya.Vector3(30,0,0); this.rigidbody.linearVelocity = vectory; console.log(this.rigidbody.linearVelocity); 获取得到的值确是 Vector3 {x: -0.20082436501979828, y: 0, z: 0.20082436501979828} z轴分量应该位0才对,就...

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

612. 修改坐标后,实际效果不改变 [ 62%]

...回调中进行位置和大小改变 this.lz.transform.position = new Laya.Vector3(1000, 1000, 1000); this.lz.transform.localScale = new Laya.Vector3(3, 3, 3); 并且确实改变了对应的值。但是渲染的效果并没有变化 附件 : --> LayaScene_Effect.rar effect.rar WebGame.rar 2018-03-27...

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

613. Unity导出报错KeyNotFoundException: The given key was not present in the dictionary. [ 62%]

...a (UnityEngine.GameObject 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, Boolea...

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

614. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 62%]

...根据移动的距离进行旋转 (owner as Sprite3D).transform.rotate(new Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ _text.text = "触控点为2"; isTwoTouch = true; //获取两个触碰点 var touch:Touch = _scene.input.getTouch(0); var touch2:Touch = ...

来源: Laya2.0_文档 发布时间: 20210715

615. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 62%]

...arColor = new Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera2.clearColor = new Ve...

来源: Laya2.0_文档 发布时间: 20210715

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

........... if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else if (e.keyCode == 100) { // console.log('d...

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

617. Unity2.10.0beta插件报错 [ 61%]

...600df769>:0) o.a (UnityEngine.GameObject A_0, c A_1, c A_2, UnityEngine.Vector3 A_3, UnityEngine.Quaternion A_4, UnityEngine.Vector3 A_5, System.String& A_6) (at <174bbe38e5444724b5b9eeb4600df769>:0) o.a (UnityEngine.GameObject A_0, System.String A_1, c A_2, System.Boolean A_3, System.B...

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

618. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 61%]

...; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2...

来源: Laya2.0_文档 发布时间: 20210715

619. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 61%]

...; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2...

来源: Laya2.0_文档 发布时间: 20210715

620. 请问一下我一个3d模型,贴图是UV类型的里面好多张图,在代码里面怎么调用其它的贴图 [ 61%]

...        var twoMc:MeshSprite3D = Sprite3D.instantiate(meshSprite,new Vector3(0.1, 0, 0.2),null,null,false) as MeshSprite3D;                         twoMc.transform.position = new Vector3(0.1, 0, 0.2);                         var transformUVTwo:TransformUV = ...

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