大约有 148 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0035 秒)
...r camera = new Laya.Camera(0, 0.1, 1000); scene3d.addChild(camera); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(1000, 0, 0)); camera.orthographic = true; //正交投影垂直矩阵尺寸 camera.orthographicVerticalSize = 10; camera....
来源: Laya_社区 发布时间: 20191206
...置这个节点的旋转,如果我使用Laya.Quaternion.cloneTo(camera.transform.localRotation),会失败,如果使用camera.transform.localPosition = Laya.Quaternion.clone(),才会成功,之前我记得你们不是说过尽量避免创建对象吗?直接用cloneTo,摄像机的旋转四...
来源: Laya_社区 发布时间: 20170628
... = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._position, this._camera.projectionViewMatrix, this._outPos); this._layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX, this._outPos...
来源: Laya2.0_文档 发布时间: 20210714
... = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._position, this._camera.projectionViewMatrix, this._outPos); this._layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX, this._outPos...
来源: Laya2.0_文档 发布时间: 20210715
... = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._position, this._camera.projectionViewMatrix, this._outPos); this._layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX, this._outPos...
来源: Laya2.0_文档 发布时间: 20210715
... let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.tra...
来源: Laya_社区 发布时间: 20200915
怎么设置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
...; var camera = this.scene.addChild(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.mainCamera = camera; //...
来源: Laya_社区 发布时间: 20180126
...addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 0, 6)); camera.clearColor = null; //材质 var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("Ass...
来源: Laya_社区 发布时间: 20180119
...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.position = new Laya.Vector3(0, 0, 10); camera.transform.rotate(new Laya.Vector3(0, 180, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); th...
来源: Laya_社区 发布时间: 20180503