大约有 119 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...ticalSize = 7; //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); ``` (图2)正交投影的效果图
来源: Laya2.0_文档 发布时间: 20210714
...根据移动的距离进行旋转 (owner as Sprite3D).transform.rotate(new Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ _text.text = "触控点为2"; isTwoTouch = true; //获取两个触碰点 var touch:Touch = _scene.input.getTouch(0); var touch2:Touch = ...
来源: Laya2.0_文档 发布时间: 20210715
...dByName("DirectionalLight") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = 1; for (let index = 0; index < 2; index++) { var a = 0.05; var b = 0.2; var c...
来源: Laya_社区 发布时间: 20191223
...icVerticalSize = 7; //移动摄像机位置 camera.transform.translate(new Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transform.rotate(new Vector3( -30, 0, 0), true, false); ``` (图2)正交投影的效果图
来源: Laya2.0_文档 发布时间: 20210715
...; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2...
来源: Laya2.0_文档 发布时间: 20210715
...; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2...
来源: Laya2.0_文档 发布时间: 20210715
...aya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //方向光 var directionLight = scene.addChild(ne...
来源: Laya_社区 发布时间: 20180725
...calMatrix : Matrix4x4 获取局部矩阵。 Transform3D localPosition : Vector3 获取局部位置。 Transform3D localPositionX : Number 获取局部位置X轴分量。 Transform3D localPositionY : Number 获取局部位置Y轴分量。 Transform3D localPositionZ : Number 获取局部...
来源: Laya2.0_api 发布时间: 20190513
...; // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node)...
来源: Laya_社区 发布时间: 20190813
...gScene() { MousePickingScene.super(this); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.camera = this.addChild(new Laya.Camera(0, 0.1, 1...
来源: Laya_社区 发布时间: 20170323