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

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

351. u3d 插件导出 简单场景,用最新引擎无法加载成功 [ 71%]

...摄像机 var camera = new Laya.Camera(); scene.addChild(camera); camera.transform.localPosition = new Laya.Vector3(0,4,10); //载入并显示3D建筑 var map = Laya.Sprite3D.load("LayaScene_test/test.lh"); scene.addChild(map); //map.transform.localPosition = new Laya.Vector3(0,-4,-10); //控制摄...

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

352. 如何将Tween缓动应用与3D物体 [ 71%]

... 2019-02-14 0 1 分享 微博 QZONE 微信 soren 赞同来自: clownFish.transform.lookAt(new Laya.Vector3(1.3288445472717285,0.9997662901878357,-3.575782537460327), new Laya.Vector3(0,0,0)); Laya.Tween.to(clownFish.transform.position, { x: 1.3288445472717285, y: 0.9997662901878357, z: -3.5757825374...

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

353. 3D模型的材质修改问题 [ 71%]

...l/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh1"); var shareMaterial = warehous...

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

354. 如何平滑移动相机 [ 71%]

...-03-23 0 3 分享 微博 QZONE 微信 hejianchun 赞同来自: this.camera.transform.position=....就行   2018-03-23 0 1 分享 微博 QZONE 微信 qian 赞同来自: https://ask.layabox.com/question/10611 试试这个 2018-03-23 0 0 分享 微博 QZONE 微信 别抢我可乐 赞同来自: 这是...

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

355. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 71%]

...//调整胖子的相对旋转,相对位移,以及缩放。 this.pangzi.transform.localRotation = this._rotation; this.pangzi.transform.localPosition = this._position; this.pangzi.transform.localScale = this._scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从...

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

356. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 71%]

...//调整胖子的相对旋转,相对位移,以及缩放。 this.pangzi.transform.localRotation = this._rotation; this.pangzi.transform.localPosition = this._position; this.pangzi.transform.localScale = this._scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从...

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

357. 如何获得box单独每个面的material [ 71%]

...xHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = new Laya.StandardMaterial(); material.albedo = new Laya.V...

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

358. 修改localRotationEuler的问题 [ 71%]

...行赋值操作,代码如下。// 刷新下数值 var temp = this.model.transform.localRotationEuler; // 再进行修改 this.model.transform.localRotationEulerY = 90;方案二:在laya.d3.js中,在set localRotationEulerX、set localRotationEulerY、set localRotationEulerZ等属性方法内进...

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

359. 请问怎么把多个模型合并在一个组里面 [ 71%]

...= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box0.transform.position=new Laya.Vector3(1,0,0); var box1= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box1.transform.position=new Laya.Vector3(-1,0,0); 建立了2快板,显示如下:  我建了box0和...

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

360. position -position应该怎么写?? [ 71%]

...Loop() { cameraPos = camera.position; viewDir = camera.position - lineMesh.transform.position; console.log(viewDir); lineMesh.transform.lookAt(new Laya.Vector3(3, 3, 3), viewDir, true); } 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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