• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 982 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0048 秒)

161. 移动控制。 [ 86%]

... 下放开注释就发生错误。       //         this.owner.transform.localRotationEulerX=this.hitResult1.collider.owner.transform.localRotationEulerX;        //         this.rotation=this.owner.transform.localRotationEuler;         //     }else if(this.hitRes...

来源: Laya_社区 发布时间: 20200222

162. 3D加载不了 [ 86%]

...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

163. 为什么动态设置聚光灯朝向无效呢 [ 86%]

...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

164. 为什么动态设置聚光灯朝向无效呢 [ 86%]

...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

165. 3D项目,,模型默认朝向的问题,,, [ 85%]

...向,在场景里面创建出来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

166. 动画混合问题,Avatar动画混合报错. [ 85%]

...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

167. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 85%]

...rrainSprite世界矩阵(为可行走区域世界矩阵) this.terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; 把场景模型的世界矩阵赋值到 MeshTerrainSprite3D 对象中,从而初始化地形的x,z轴数据 3.4 得到整数的网格索引 通过地形x,z轴...

来源: Laya3.0_文档 发布时间: 20230303

168. 射线检测-放置物体 [ 85%]

...相机 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_示例 发布时间: 20250219

169. 1.0 骨骼drawcall优化猥琐方法 [ 85%]

...ue2D.create(ShaderDefines2D.SKINMESH, 0));                 transform || (transform = Matrix.EMPTY);                 transform.translate(x, y);                 Matrix.mul(transform, context._curMat, _tempMatrix);                 transfor...

来源: Laya_社区 发布时间: 20190628

170. ios微信clone特效会导致特效的mesh无法显示 [ 85%]

...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