大约有 169 项符合查询结果, 库内数据总量为 30,789 项。 (搜索耗时: 0.0040 秒)
...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight ...
来源: Laya_社区 发布时间: 20170807
....camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); } onEnable() { Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this._onStageDown); } _onStageDown() { //创...
来源: Laya_社区 发布时间: 20200801
怎么设置3D相机,模型的绝对值 this.camera.transform.position = new Laya.Vector3(0, 10, 40); this.camera.transform.translate(new Laya.Vector3(0, 10, 40)); this.camera.transform.rotate(new Laya.Vector3(0, 10, 0), true, false); 做一个按钮,专门切换到90度的视图上,怎么设置相...
来源: Laya_社区 发布时间: 20180411
...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...
来源: Laya2.0_文档 发布时间: 20210715
... var instance = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl...
来源: Laya_社区 发布时间: 20180402
...et camera: Laya.Camera = new Laya.Camera(); camera.name = "Camera"; camera.transform.position = new Laya.Vector3( -6.87492561340332, 3.95000958442688, 1.06434166431427); camera.transform.rotation = new Laya.Quaternion( -0.19387270510196686, -0.6291995048522949, -0.16616787016391754, 0.73410463333129...
来源: Laya_社区 发布时间: 20180201
...置这个节点的旋转,如果我使用Laya.Quaternion.cloneTo(camera.transform.localRotation),会失败,如果使用camera.transform.localPosition = Laya.Quaternion.clone(),才会成功,之前我记得你们不是说过尽量避免创建对象吗?直接用cloneTo,摄像机的旋转四...
来源: Laya_社区 发布时间: 20170628
...addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 30)); //方向光 const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = ne...
来源: Laya_社区 发布时间: 20210103
...同来自: let out = window.app.fcUtil.worldToViewportPoint(this.owner.transform.position, window.GameMag.Camera1); this.hpNode.x = out.x - this.hpNode.width / 2 this.hpNode.y = out.y + this.hpNode.height *3.5 //this.owner.transform 3d的物体 //this.hpNode 2d的ui //3d坐标转2d...
来源: Laya_社区 发布时间: 20201110
...amera = this.scene.addChild(new Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } private onMouseWheel(e:Event):void { e. //没有...
来源: Laya_社区 发布时间: 20170321