大约有 284 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0035 秒)
Laya_社区(161) Laya2.0_文档(43) Laya_示例(41) Laya3.0_api(12) laya_api(10) Laya2.0_api(10) Laya3.0_文档(6) Laya2.0_示例(1)
...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
...("destroy"); this.owner.destroy(); }); } onUpdate() { this.owner.transform.translate(new Laya.Vector3(0, 0, -0.1)); } 2019-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Sོ 赞同来自: 同问, 求解...
来源: Laya_社区 发布时间: 20190308
...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
... 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
...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
...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
....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
...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
...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
...true代表是局部坐标,false是相对世界坐标。 camera.transform.translate(new Vector3(0, 0, 3),false); 相机没有被其他因素限制吗? 2018-03-01 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人...
来源: Laya_社区 发布时间: 20180301