大约有 270 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0040 秒)
Laya_社区(150) Laya2.0_文档(58) Laya_示例(40) Laya3.0_文档(10) Laya3.0_api(5) laya_api(4) Laya2.0_api(3)
...r3 {elements: Float32Array[3]} 改成這樣: console.log( camera.transform.position.x ); console.log( camera.transform.position.y ); console.log( camera.transform.position.z ); 另外;你的 position 打錯,不是 postion 是 position。 2017-08-08 2 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170808
...mera:Camera = (scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 10, 0)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加地板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100...
来源: Laya_社区 发布时间: 20190417
怎么设置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 = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); ...
来源: Laya_社区 发布时间: 20180605
....stage.addChild(this.scene); this.scene.addChild(this.camera); this.camera.transform.translate(new Laya.Vector3(0, 3.5, 1)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(...
来源: Laya_社区 发布时间: 20200903
... camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; direct...
来源: Laya2.0_文档 发布时间: 20210714
...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_社区 发布时间: 20191009
...SHADING; var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new ...
来源: Laya_社区 发布时间: 20170515
... this.camera = new Laya.Camera(); this.camera.transform.translate(new Laya.Vector3(0, 2, 5)); this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); this.scene.addChild(this.camera); Laya.loader.cr...
来源: Laya_社区 发布时间: 20191102
...; //加载到场景 scene.addChild(camera); //旋转摄像机角度 camera.transform.rotate(new Vector3( -25, 0, 0), false, false); //移动摄像机位置 camera.transform.position=new Vector3(0, 5, 10); //加入摄像机移动控制脚本 //camera.addComponent(CameraMoveScript); //添加蒙皮动...
来源: Laya_社区 发布时间: 20190416