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

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

161. 加载不了模型 [ 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

162. 如何实现3d遮罩效果? [ 86%]

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

163. 移动控制。 [ 86%]

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

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

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

165. 为什么动态设置聚光灯朝向无效呢 [ 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

166. 为什么动态设置聚光灯朝向无效呢 [ 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

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

168. 动画混合问题,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

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

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

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

170. 射线检测-放置物体 [ 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_示例 发布时间: 20251209