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

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

61. 通过PrimitiveMesh创建简单Mesh(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 89%]

...ild(new Laya.Sprite3D()); //正方体 var box = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(ne...

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

62. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 89%]

...使用FixedConstraint** - 1.创建两个刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; p...

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

63. 材质-BlinnPhong-法线贴图 [ 88%]

...02, 0.002, 0.002); for (var i = 0; i < monster2._childs.length; i++) { var meshSprite3D = monster2._childs[i]; var material = meshSprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.tr...

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

64. 高级应用-寻路导航 [ 88%]

...块生成路径点 initPath(this.scene); //获取可行走区域模型 var meshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap'); //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/...

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

65. 射线检测-点击行走 [ 88%]

... new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0...

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

66. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 88%]

...typescript //新建一个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShape(1); //给球...

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

67. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 88%]

...创建了一个平面。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/gras...

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

68. 材质-BlinnPhong材质加载 [ 87%]

...on = new Laya.Vector3(1, -1, -1); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); //加载材质 layaMonkey.meshRender.material = Laya.StandardMaterial.load("../../res/threeDimen/skinModel...

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

69. Unity3d导出的粒子特效导入到laya中,用示例的做法,Laya.Sprite3d.load的方式加载,然后挂载到一个MeshSprite3d上,第一次显示的时候画面会卡一下,请问是什么问题? [ 87%]

...示例的做法,Laya.Sprite3d.load的方式加载,然后挂载到一个MeshSprite3d上,第一次显示的时候画面会卡一下,请问是什么问题? 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

70. 寻路导航示例中添加Laya.PathFind组件报异常 [ 87%]

...一段关于导航的代码,如下: //获取可行走区域模型 var meshSprite3D: Laya.MeshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap') as Laya.MeshSprite3D; //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader....

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