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

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

201. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 53%]

...ra = (scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 3)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color...

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

202. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 53%]

...("destroy"); this.owner.destroy(); }); } onUpdate() { this.owner.transform.translate(new Laya.Vector3(0, 0, -0.1)); } 2019-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Sོ 赞同来自: 同问, 求解...

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

203. 3D加载不了 [ 53%]

...ne.addChild(new Laya.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraMoveScript)...

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

204. 正交摄像机裁剪问题 [ 53%]

... camera = (scene.addChild(new Laya.Camera(0, 0.1, 550))); camera.transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up, rotation); camera.transform.rotation = rotation; camera.clearColor = ne...

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

205. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 53%]

...e.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionL...

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

206. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 53%]

...Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150,100); sp.graphics.drawTexture(texture,0,0,texture.width,texture.height,matrix); sp.graphics.drawRect(100,50,200,90,'#000000'); Laya.stage.addChild(sp); } } } 2017-04-14 0 0 分享 微博 QZONE 微信 为什么...

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

207. 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? [ 52%]

....transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.translate(new Laya.Vector3(10, 10, 10)); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; 贴图只能选一张吗? 2018-02-27...

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

208. 射线BUG [ 52%]

...amera = this.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 1, 3)); //camera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); MousePickingScene.prototype.lateRender = function...

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

209. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 52%]

...st(this.ray,this.outHitInfo,5)); //更新角色位置 this.owner.transform.translate(new Laya.Vector3(speedX,0,speedZ),false); //播放行走动画   2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 qian...

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

210. layabox3D用unity3D导出的场景文件为什么不能加相机控制,怎么加都不管用 [ 52%]

...true代表是局部坐标,false是相对世界坐标。 camera.transform.translate(new Vector3(0, 0, 3),false); 相机没有被其他因素限制吗? 2018-03-01 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人...

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