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

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

21. 3D中如何限制角色的行走区域? [ 83%]

...子父级节点寻找可行走区域网格模型               var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D;               var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D;               //通过...

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

22. 没有人尝试使用3d物理引擎么 [ 82%]

...t laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D...

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

23. 自定义shader-边缘光照shader [ 82%]

...ion = new Laya.Vector3(0, 0.5, 0); }); var earth = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.5, 128, 128))); var customMaterial = new CustomMaterial(); customMaterial.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/texture/earth.png")); customMaterial.setMarginalColor(ne...

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

24. MeshSprite3D对象更改Mesh [ 82%]

MeshSprite3D对象更改Mesh MeshSprite3D材质相同,模型不同,我自己是这样写的,换了之后看不到了。可以这样换吗,还是要创建一个新的MeshSprite3D换掉?   附件 : --> 2017-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

25. timer无法执行 [ 81%]

...中降落的球 //var random: number = Math.random()*24-7; let ball: Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.P...

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

26. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 80%]

...图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", La...

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

27. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 80%]

...ngMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D;         box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false);         var material: Laya.Blin...

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

28. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 79%]

...dMatrix.setForward(new Vector3(1, -1, 0)); //添加自定义模型 var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 45, 0), false, false); var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...

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

29. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 79%]

...Forward(new Laya.Vector3(1, -1, 0)); //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Lay...

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

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

...什么结果是一样的?? @asanwuvar mesh4 =scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("xiong/xiong.lm"))); var skinAni4 = mesh4.addComponent(Laya.SkinAnimations); skinAni4.templet = Laya.AnimationTemplet.load("xiong/xiong2.lsani"); skinAni4.player.play(); mesh4.transform.localPosition...

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