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

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

201. PointLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 60%]

...dChild(new PointLight()) as PointLight; //设置点光源位置 pointLight.transform.position = new Vector3(0.4, 0.4, 0.0); //设置点光源的范围 pointLight.range = 6.0; ``` **range** 为设置点光源的范围,相当于点光的照射范围,数值越大,光照范围越大。 图1中因...

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

202. js中使用sharedMesh报错 [ 60%]

...ite3D.load("model/warehouse/1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(-25,0,0),false); warehouse1.name = "仓库1"; var warehouseCollider1 = warehouse1.addComponent(Laya.MeshCollider); war...

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

203. Effect材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 60%]

...shSprite3D(Laya.PrimitiveMesh.createSphere())) as Laya.MeshSprite3D; earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, fun...

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

204. PointLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 60%]

...= new Laya.Vector3(1.0, 0.5, 0.0); //设置点光源位置 this.pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点光源的范围 this.pointLight.range = 3.0; ``` **range** 为设置点光源的范围,相当于点光的照射范围,数值越大,光照范围越大。 ...

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

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

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

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

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

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

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

207. 场景环境反射(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 60%]

...nction(mesh){ teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya.Handler.create(null, functio...

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

208. LayaAir如何动态的获取运动状态sprite的位置 [ 60%]

... 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来自: transform.position 2018-10-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 魂 相关问题 微信关系链:LayaAir引擎针对微信小游戏好友关系链实...

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

209. 场景环境反射(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 60%]

...ction(mesh) { teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMat.enab...

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

210. Laya.Sprite3D.instantiate克隆的对象过多,渲染不出来 [ 60%]

...,且它是由20个扇形平成的圆环 this.m_vLastPos = this.m_circle.transform.localPosition; for(index = 0; index < 10; index++){ var circle = Laya.Sprite3D.instantiate(this.m_circle) this.m_pillar.addChild(circle); this.m_arrCircle.push(circle); this.m_vLastPos.y -= 60; circle.transform.lo...

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