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

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

1. MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 [ 100%]

MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 示例代码如下: this.capsule = new Laya.MeshSprite3D(new Laya.CapsuleMesh(0.5, 1)); var capsuleCollider:Laya.PhysicsCollider = this.capsule.addComponent(Laya.PhysicsCollider);//网格触发器 var capsuleShape:Laya...

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

2. 销毁 new 出的带有 PhysicsCollider 的正方体模型报错 [ 96%]

销毁 new 出的带有 PhysicsCollider 的正方体模型报错 this.box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))) as Laya.MeshSprite3D; this.box.addComponent(Laya.PhysicsCollider); this.box.destroy();引擎版本 LayaAirIDE2.0_beta.5 报错: Uncaught TypeError: Cannot r...

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

3. 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined [ 96%]

添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined 我的模型是用unity3d导出来的,都能正常显示,播放动画,但在在添加 var boxCollider:PhysicsCollider = saiziSprite.addComponent(PhysicsCollider)as PhysicsCollider; 时报错了,报错...

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

4. PhysicsCollider 无法触发 onTriggerEnter,onCollisionEnter [ 94%]

PhysicsCollider 无法触发 onTriggerEnter,onCollisionEnter 两个正方形,通过下面代码添加了,物理碰撞,其中一个上面加了一个脚本继承了Laya.Script3D,但是 这个脚本的 onTriggerEnter,onCollisionEnter 始终都触发不了,谁能解释一下吗   let ph...

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

5. add PhysicsCollider组件的时候之间运行报错【2.0beta5.1] [ 88%]

add PhysicsCollider组件的时候之间运行报错【2.0beta5.1] var boxMesh:BoxMesh = new BoxMesh(2,2,2); //创建模型显示对象 var box3D:MeshSprite3D = new MeshSprite3D(boxMesh); box3D.addComponent(PhysicsCollider); scene.addChild(box3D); 附件 : --> 2019-01-04 添加评论 免费帖 --> ...

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

6. laya3d物体碰撞与触发检测的问题 [ 85%]

...eshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.addComponent(Laya.PhysicsCollider); var Rig=box.addComponent(Laya.Rigidbody3D); Rig.colliderShape=new Laya.BoxColliderShape(1,1,1); Rig.isTrigger=true; box.transform.translate(new Laya.Vector3(0, 2, 0), false); box.addComponent(BoxMove); //添...

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

7. timer无法执行 [ 85%]

...ath.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D); ballrigid.colliderShape = new Laya.SphereColliderShape(1); ballrigid.friction = 1; ballrigid.mass = Math.random() * 200 + 100;//质量...

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

8. Laya.PolygonCollider [ 81%]

...不用我上传实例DEMO,就新建物理demo,把plane.addComponent(Laya.PhysicsCollider)改为addComponent(Laya.PolygonCollider)就报错了。打算测试这个组件的,测不了。 附件 : --> 2020-06-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

9. unity导出3d默认模型。代码添加网格碰撞必先错误 [ 79%]

...ole = scene3D.getChildByName("Cube") as Laya.MeshSprite3D;  let phy: Laya.PhysicsCollider = this.role.addComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; let mesh:Laya.Mesh = Laya.loader.getRes("res/Conventional/Library/unity default resources-Cube.lm"); let physhape: Laya.MeshColliderShape...

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

10. 给mesh添加物理组件就报错 [ 77%]

...e3D = this.track._children[this.track.numChildren - 1]; var collider: Laya.PhysicsCollider = mesh.addComponent(Laya.PhysicsCollider);  var shape: Laya.MeshColliderShape = new Laya.MeshColliderShape(); shape.mesh = mesh.meshFilter.sharedMesh;  collider.colliderShape = shape; 附件 : --> 2019-07-15...

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