大约有 978 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0050 秒)
Laya_社区(516) Laya3.0_api(117) Laya2.0_文档(110) Laya2.0_api(94) laya_api(83) Laya_示例(40) Laya3.0_文档(18)
...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
...ar tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始...
来源: Laya_社区 发布时间: 20171105
...ar tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始...
来源: Laya_社区 发布时间: 20171105
...向,在场景里面创建出来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
...RO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.sprite.transform.position,norDir,position) // this.sprite.transform.position = position; this.sprite.transform.localPositionX +=...
来源: Laya_社区 发布时间: 20191026
...rrainSprite世界矩阵(为可行走区域世界矩阵) this.terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; 把场景模型的世界矩阵赋值到 MeshTerrainSprite3D 对象中,从而初始化地形的x,z轴数据 3.4 得到整数的网格索引 通过地形x,z轴...
来源: Laya3.0_文档 发布时间: 20230303
...相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionL...
来源: Laya_示例 发布时间: 20241117
...ue2D.create(ShaderDefines2D.SKINMESH, 0)); transform || (transform = Matrix.EMPTY); transform.translate(x, y); Matrix.mul(transform, context._curMat, _tempMatrix); transfor...
来源: Laya_社区 发布时间: 20190628
...ra = scene.addChild( new Laya.Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { va...
来源: Laya_社区 发布时间: 20220721
...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight ...
来源: Laya_社区 发布时间: 20170807