大约有 169 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0040 秒)
前述问题this.sp3Role.transform.position无效 您好,之前这个帖子(http://ask.layabox.com/question/50395)你们回复的this.sp3Role.transform.position这个方法只让主角移动和camera.transform.position相机跟随无效,因为主角无法移动,camara还没办法尝试,...
来源: Laya_社区 发布时间: 20220622
...(state.elapsedTime); } protected function mouseDown(e:Event):void { camera.transform.localRotation.getYawPitchRoll(yawPitchRoll); lastMouseX = Laya.stage.mouseX; lastMouseY = Laya.stage.mouseY; isMouseDown = true; } protected function mouseUp(e:Event):void { isMouseDown = false; } protected function...
来源: Laya_社区 发布时间: 20170218
...ra = (scene.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....
来源: Laya_社区 发布时间: 20190618
...camera1:Camera = new Camera(0, 0.1, 100); scene.addChild(camera1); camera1.transform.translate(new Vector3(0, 0.8, 1.5)); camera1.transform.rotate(new Vector3(-30, 0, 0), true, false); camera2 = new Camera(0, 0.1, 100); scene.addChild(camera2); camera2.clearColor = new Vector4(0.0, 0.0, 1.0, 1.0); c...
来源: Laya_社区 发布时间: 20170209
...camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild(directionLight); //设置灯光方向 var...
来源: Laya_社区 发布时间: 20191209
...相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 3)); camera.clearColor = null; Laya.loader.create(["../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm", "../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunminnan.lm", "../../r...
来源: Laya_示例 发布时间: 20241124
...era = (scene.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(CameraM...
来源: Laya_社区 发布时间: 20180427
...era = (scene.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(CameraM...
来源: Laya_社区 发布时间: 20180427
...void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position, _up); } else if (index % 3 === 2){ //摄像机捕捉模型目标 camera.transform.lookAt(cylinder.transform.position, _up); } else{ //摄像机捕捉模型目标 camera.transform.lookA...
来源: Laya2.0_文档 发布时间: 20210714
....scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3)); this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); this.camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = this.scene.add...
来源: Laya_社区 发布时间: 20180307