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

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

201. 3D光源 好诡异。 [ 57%]

...0, 0.9); spointLight.diffuseColor = new Laya.Vector3(1, 1, 1); spointLight.transform.translate(new Laya.Vector3(0, 30, 0)); spointLight.attenuation = new Laya.Vector3(3.0, 3.0, 3.0); spointLight.range = 30.0;   2017-11-06 0 2 分享 微博 QZONE 微信 ymsdandan 赞同来自: 如果是灯光方面...

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

202. StaticModel_MeshSample例子运行不起来 [ 57%]

...ddChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         var mesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/thre...

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

203. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 56%]

...phere(0.5))); //将创建的球放置在导出球的同一点 this.sphere2.transform.position = this.sphere.transform.position; //将创建的球平移 this.sphere2.transform.translate(new Laya.Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 this.sphere2.meshR...

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

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

... touch.position.y; //根据移动的距离进行旋转 (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)...

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

205. 用u3d导出的粒子效果,不能移动粒子的位置 [ 56%]

....load("res/LayaScene_effect/effect.lh") as Laya.Sprite3D; particleSprite3D.transform.translate(new Laya.Vector3(0,20,0)) this.scene.addChild(particleSprite3D); 用u3d导出的粒子效果,不能移动粒子的位置 2018-05-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

206. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 56%]

...     this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);          this.scene.addChild(this.camera);         Laya.loader.cr...

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

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

....y = this.touch.position.y; //根据移动的距离进行旋转 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.inp...

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

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

....y = this.touch.position.y; //根据移动的距离进行旋转 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.inp...

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

209. 使用U3D导出粒子特效不显示 [ 55%]

....ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); } return LayaAir3D; } ()); LayaAir3D();   2018-03-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目...

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

210. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 55%]

...er.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.Animator; //动画完成事件监听 this.roleAni.on(Laya.Event.COMPLETE...

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