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

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

171. 为什么rotation、scale赋值了不管用? [ 70%]

...cale赋值了不管用? 我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,但是我放到fra...

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

172. 3D网格添加刚体后设置欧拉角出现位置错误 [ 70%]

...     //平面加载         let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10)));         plane.transform.position = new Laya.Vector3(0, -2, 0);         let planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/...

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

173. 3D的一些问题 [ 70%]

...原来必须使用.lm的文件才能解决第一个问题 var obj3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.Mesh.load("Assets/FBX/scene_1-default001.lm")); 这样写就可以获得材质,而lh文件则不行,然而这样写的话,又出现了Laya.Event.HIERARCHY_LOADED事件并...

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

174. 自定义shader-地形shader [ 70%]

...); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMat...

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

175. 挂载物体的3D变换问题 [ 69%]

... var cylinderMesh:CylinderMesh=new CylinderMesh(0.05,2,8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role....

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

176. WX小游戏声音_audio报错问题 [ 69%]

...otBallCtrl._update (http://127.0.0.1:24812/game/code.js:94213:18)     at MeshSprite3D.__proto._updateComponents (http://127.0.0.1:24812/game/code.js:70809:36)     at MeshSprite3D.__proto._update (http://127.0.0.1:24812/game/code.js:86537:9)     at Scene.__proto._updateChilds (http://127.0.0.1:...

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

177. Unity5.5用LayaUnityPlugin 0.55导出模型 [ 69%]

...Child(new Laya.Sprite3D()); var skinMesh0 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Cube.lm"))); var skinMesh1 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Sphere.lm"))); ...

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

178. 动态阴影被切割了?为啥没有显示完成的阴影 [ 68%]

...X = posX || 0; posY = posY || 0; posZ = posZ || 0; var instance = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); materi...

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

179. 物理系统之ConfigurableConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 68%]

...刚体,创建约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigid...

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

180. 物理系统之ConfigurableConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 68%]

...刚体,创建约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigid...

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