大约有 174 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0039 秒)
...大小 camera.orthographicVerticalSize = 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
...向,在场景里面创建出来2个, 第一个: this._mainPlayer.transform.position = new Vector3( 0,0,1 ); 第二个: this._npc.transform.position = new Vector3( 0,0,4 ); 然后调用: this._npc.transform.lookAt( this._mainPlayer.transform.position,new Laya.Vector3(0,1,0) ); 发现 ...
来源: Laya_社区 发布时间: 20180925
...大小 camera.orthographicVerticalSize = 7; //移动摄像机位置 camera.transform.translate(new Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transform.rotate(new Vector3( -30, 0, 0), true, false); ``` (图2)正交投影的效果图
来源: Laya2.0_文档 发布时间: 20210715
...ra = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 6, 9.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamer...
来源: Laya_社区 发布时间: 20201127
...// 加载到场景 scene.addChild(camera); // 移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); // 旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), false); // 设置摄像机视野范围(角度) camera.fieldOfView = 50; // 设置背景颜色 ...
来源: Laya_社区 发布时间: 20171227
...; //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 35; //设置背景颜...
来源: Laya_社区 发布时间: 20180426
...rrainSprite世界矩阵(为可行走区域世界矩阵) this.terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; //给terrainSprite添加PathFind组件 var pathFingding = this.terrainSprite.addComponent(Laya.PathFind); pathFingding.setting = { allowDiagonal: true, dontCrossCorn...
来源: Laya_示例 发布时间: 20260106
...l/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh1"); var shareMaterial = warehous...
来源: Laya_社区 发布时间: 20171225
...er.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.Animator; //动画完成事件监听 this.roleAni.on(Laya.Event.COMPLETE...
来源: Laya_社区 发布时间: 20171113
...同时绘制多个位图或者矢量图,还可以结合save,restore,transform,scale,rotate,translate,alpha等指令对绘图效果进行变化。 Graphics以命令流方式存储,可以通过cmds属性访问所有命令流。Graphics是比Sprite更轻量级的对象,合理使用能...
来源: Laya3.0_api 发布时间: 20231115