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

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

251. 组件属性的代码使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

... type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的进阶使用 @pr...

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

252. 天空穹不显示 [ 77%]

...dChild(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.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D....

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

253. 请问怎么把多个模型合并在一个组里面 [ 77%]

...shSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box0.transform.position=new Laya.Vector3(1,0,0); var box1= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box1.transform.position=new Laya.Vector3(-1,0,0); 建立了2快板,显示如下:  我建了box0和box1,就是2个板,怎...

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

254. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 77%]

...rectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` ​ **setForward** 平行光...

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

255. DirectionLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 77%]

... Laya.DirectionLight; //方向光的颜色 directionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` ​ **setForward** 平行光的方...

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

256. laya.d3.core.particleshuriken.module.GradientSize_API3.0 [ 76%]

...定尺寸。 Returns number constantMaxSeparate get constantMaxSeparate(): Vector3 Defined in laya/d3/core/particleShuriKen/module/GradientSize.ts:197 最小分轴随机双固定尺寸。 Returns Vector3 constantMin get constantMin(): number Defined in laya/d3/core/particleShuriKen/module/GradientSi...

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

257. 3D模型旋转问题,鼠标移动之后,根据按下移动的X坐标差值判断左右旋转,但是会越转越快,请问是什么问题? [ 76%]

...umber = Laya.stage.mouseX; let mY:number = Laya.stage.mouseY; let vec:Laya.Vector3 ; if(this.isDown){ if(this.lastMouseX - mX > 0) { vec = new Laya.Vector3(0,-1,0); } else { vec = new Laya.Vector3(0,1,0); } this.rotate(vec); } }   监听的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_UP,thi...

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

258. 在没有碰撞条件情况下,为何会撞歪物体,导致旋转角度改变? (附源码Laya+Unity) [ 76%]

...aya.Sprite3D;         asteroidBox.transform.position = new Laya.Vector3(Strong.rangeRandomFloat(-5, 5), 0, 15.4);         //asteroidBox.transform.position = new Laya.Vector3(0, 0, 7);         // asteroid.transform.rotate(new Laya.Vector3(         //   ...

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

259. 如何获得box单独每个面的material [ 76%]

...arent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = new Laya.StandardMaterial(); material.albedo = new Laya.Vector4(this.color.r,this.c...

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

260. laya.d3.core.render.posteffect.ColorGradEffect_API3.0 [ 76%]

...开启Split Tone Parameters value: boolean Returns void gain get gain(): Vector3 set gain(value: Vector3): void Defined in laya/d3/core/render/PostEffect/ColorGradEffect.ts:353 gain 0-2 Returns Vector3 Defined in laya/d3/core/render/PostEffect/ColorGradEffect.ts:357 gain 0-2 Parameters value: Vector...

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