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

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

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

...建出来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

342. UNITY导出的模型旋转不了 [ 79%]

...let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new Laya.Vector3(0, 0.9, 0)); obj.addComponent(BoxControlScript); //旋转方向与角度设置 //var vect = new Laya.Vector3(0,1,0); //每10毫秒旋转一次 //Laya.timer.loop(10,null,...

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

343. SpotLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 79%]

...t()) as Laya.SpotLight; //设置聚光灯颜色 spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); s...

来源: Laya2.0_文档 发布时间: 20210715

344. 以前用lm文件加载模型。现在用lh文件加载模型无法贴图 [ 79%]

...h.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); fish.transform.position = new Laya.Vector3(0,0.5,0); // fish.transform.position = new Laya.Vector3(0.4,0.5,-0.35); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); var anifish = fish.addCompon...

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

345. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 79%]

...Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0...

来源: Laya2.0_文档 发布时间: 20210715

346. 我竟然被射线检测这个小功能给难了一天了 [ 79%]

...default;死活检测不到; camera: Laya.Camera; ray = new Laya.Ray(Laya.Vector3._ZERO, Laya.Vector3._ZERO) hitInfo:Laya.HitResult=new Laya.HitResult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = t...

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

347. 3D场景-场景加载 [ 79%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCu...

来源: Laya_示例 发布时间: 20241118

348. SpotLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 79%]

...w SpotLight()) as SpotLight; //设置聚光灯颜色 spotLight.color = new Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0))...

来源: Laya2.0_文档 发布时间: 20210715

349. laya.d3.core.particleshuriken.module.shape.SphereShape_API3.0 [ 79%]

...s void generatePositionAndDirection generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/SphereShape.ts:56 用于生成粒子初始位...

来源: Laya3.0_api 发布时间: 20231115

350. laya.d3.core.particleshuriken.module.shape.HemisphereShape_API3.0 [ 79%]

...s void generatePositionAndDirection generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:59 用于生成粒子初始...

来源: Laya3.0_api 发布时间: 20231115