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

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

41. unity3d导出的刚体模型,加载报错 [ 72%]

...of undefined     at Rigidbody3D._onAdded (libs/laya.d3.js:4824)     at MeshSprite3D._addComponentInstance (libs/laya.core.js:13911)     at MeshSprite3D.addComponent (libs/laya.core.js:13958)     at Function._createComponentInstance (libs/laya.d3.js:30948)     at Function._createComponentIn...

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

42. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 71%]

...bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet.meshFilte...

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

43. Unity5.5用LayaUnityPlugin 0.55导出模型 [ 70%]

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

44. 自定义shader-shader预编译 [ 70%]

....animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.models.Mesh; import laya.d3.shader.ShaderCompile3D; import laya.display.Stage; impo...

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

45. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 69%]

...ya.Sprite3D());             this.cube = this.cubeP.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));             let rigidbody = this.cube.addComponent(Laya.Rigidbody3D);             rigidbody.mass = 0.01;             rigidbody.overrideGravity = true;  ...

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

46. 摄像机跟随刚体移动,刚体出现抖动。 [ 69%]

...置小球的线速度,在小球的脚本的onUpdate里不断获取小球MeshSprite3D坐标,为摄像机设置坐标,现在问题是摄像机跟随小球运动的同时,小球出现抖动问题。   有尝试过尝试插值但是还是会抖动,并且线速度设置越大,抖动越厉害...

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

47. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 68%]

...rectionLight.transform.worldMatrix = mat;  //正方体 let box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)); scene.addChild(box); box.transform.position = new Laya.Vector3(0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false);  const rigidBody = box.addCom...

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

48. 同一类型光源互斥的问题报告 [ 68%]

....Sprite3D()); //添加自定义模型 var box = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.position = new Laya.Vector3(0, 0.5, 0); var material = new Laya.StandardMaterial(); //降低反射率,加强反射贴图反射 material.albedo = new Laya.Vector4(0.8, ...

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

49. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 68%]

...器的方式: ```typescript /* ……省略若干代码 */ //创建盒型MeshSprite3D let box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsColli...

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

50. laya默认模型的阴影没有渲染 [ 66%]

.../添加自定义模型 // //创建模型显示对象 var sphere3D=new Laya.MeshSprite3D(new Laya.SphereMesh(1, 32, 32)); sphere3D.transform.translate(new Laya.Vector3(0,1,-5)); var box = scene.addChild(sphere3D); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material = new L...

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