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

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

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

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

442. laya.d3.core.scene.BoundsOctreeNode [ 72%]

...de(octree:BoundsOctree, parent:BoundsOctreeNode, baseLength:Number, center:Vector3) 创建一个 BoundsOctreeNode 实例。 BoundsOctreeNode  add(object:IOctreeObject):Boolean 添加指定物体。 BoundsOctreeNode  getBound():BoundBox 获取包围盒。 BoundsOctreeNode  getCollidingWithBound...

来源: Laya2.0_api 发布时间: 20190513

443. StaticModel_MeshSample例子运行不起来 [ 72%]

...1, 100)) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         var mesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/staticModel/sphere/sph...

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

444. laya.d3.renderobjs.nativeobj.NativeRenderOBJCreateUtil_API3.0 [ 72%]

...isTransparent: boolean Returns IRenderQueue createBounds createBounds(min: Vector3, max: Vector3): any Implementation of IRenderOBJCreate.createBounds Defined in laya/d3/RenderObjs/NativeOBJ/NativeRenderOBJCreateUtil.ts:54 Parameters min: Vector3 max: Vector3 Returns any createCameraCullInfo createC...

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

445. laya.d3.renderobjs.renderobj.RenderOBJCreateUtil_API3.0 [ 72%]

...isTransparent: boolean Returns IRenderQueue createBounds createBounds(min: Vector3, max: Vector3): any Implementation of IRenderOBJCreate.createBounds Defined in laya/d3/RenderObjs/RenderObj/RenderOBJCreateUtil.ts:53 Parameters min: Vector3 max: Vector3 Returns any createCameraCullInfo createCameraC...

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

446. localRotationEulerY旋转位置错误 [ 72%]

...0)) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 6, 9.5));         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);          //方向光         var directionLight = new Laya.DirectionLight();         ...

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

447. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 72%]

....lsani"); skinAni4.player.play(); mesh4.transform.localPosition = new Laya.Vector3(-2, 0,0); mesh4.transform.localScale = new Laya.Vector3(30,30,30); var mesh =scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("xiong/xiong.lm"))); var skinAni = mesh.addComponent(Laya.SkinAnimations); skinAni.templ...

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

448. Laya截图3D场景相关模型,导致模型透视! [ 72%]

...dChild(new Laya.Camera(0, 0.1, 100)); camera.transform.position = new Laya.Vector3(0, 0, 10); camera.transform.rotate(new Laya.Vector3(0, 180, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERAR...

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

449. 武器怎么绑定? [ 72%]

...ro-mon_1129.lm"));             roleMan.transform.localScale = new Vector3(0.01, 0.01, 0.01);             roleMan.transform.localPosition = new Vector3(0, -0.5, -3);             scene.addChild(roleMan);     男角色的武器模型是:hero-mon_1129wuqi.lm 2017-04-01 ...

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

450. 如何通过四元数旋转 [ 72%]

...这句: GetComponent<Rigidbody>().AddForce ( Quaternion.Euler (new Vector3(transform.rotation.eulerAngles.x,transform.rotation.eulerAngles.y,transform.rotation.eulerAngles.z)) *new Vector3(25f*length,0,0), ForceMode.VelocityChange); 大概的须求是2d场景,旋转鼠标,炮台也跟着...

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