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

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

441. 3d模型位置设置 [ 72%]

...请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: Vector3 有 clone 跟 cloneTo 方法。   var _tempV3 = new Vector3(); a.transform.position.cloneTo(_tempV3); b.transform.position = _tempV3; 2017-12-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

442. 3D模型tween旋转 [ 72%]

3D模型tween旋转 Laya.Tween.to(sss.transform,{rotationEuler:new Laya.Vector3(0,0,0)},2000); sss是MeshSprite3D的节点,从unity导入laya的模型 运行上述代码后,模型不旋转。 使用sss.transform.rotationEuler=new Laya.Vector3(0,0,0),赋值有效   想问下,是我这个...

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

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

444. 评论功能没用的吗? [ 72%]

... null, function (sprite) {       sprite.transform.position = new Laya.Vector3(0,0,-100); }); 在游戏中 调整模型的位置需要在场景加载完后进行操作! 2017-03-16 1 2 分享 微博 QZONE 微信 cuixueying 赞同来自: 如果长时间无人回复,你可以重新发起新帖...

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

445. 关于射线检测,返回所有碰撞结果的问题 [ 72%]

...撞结果的问题 this.scene.physicsSimulation.raycastAllFromTo(new Laya.Vector3(pos.x, -1, pos.z + 1), new Laya.Vector3(pos.x, 0 + 99, pos.z + 1), vAlign);   这里的 vAlign,数组内的碰撞结果 顺序是随机的还是和射线方向有关,我使用的时候,这个碰撞结果顺序是...

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

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

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

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

448. laya.d3.core.material.Material_API3.0 [ 72%]

...PropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVector3 getVector3ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByI...

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

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