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

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

11. Laya.PolygonCollider [ 81%]

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

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

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

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

14. laya阴影问题 [ 77%]

...MeshSprite3D(Laya.PrimitiveMesh.createBox(b, a, c)); var boxCollider: Laya.PhysicsCollider = cardOne.getComponent(Laya.PhysicsCollider); if(!boxCollider){ boxCollider = cardOne.addComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; boxCollider.colliderShape = new Laya.BoxColliderShape(b, 0, c);...

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

15. 2.6.1物理bug [ 75%]

... this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getChildByName("Ball") as Sprite3D; this.ball.addComponent(BallScr...

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

16. Cannot read property '_physicsUpdateList' of null 错误 [ 75%]

...icsUpdateList' of null 错误 添加 var collider = ball.addComponent(Laya.PhysicsCollider) 添加碰撞以后 再销毁 destroy这个对象的时候 就出错了   Uncaught TypeError: Cannot read property '_physicsUpdateList' of null     at PhysicsCollider.__proto._onDestroy (laya.d3.js:21732) ...

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

17. 2.6物理问题 [ 74%]

... this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getChildByName("Ball") as Sprite3D; this.ball.addComponent(BallScr...

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

18. 物理触发器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 73%]

... sZ))); //创建物理碰撞器 var staticCollider = box.addComponent(Laya.PhysicsCollider); //标记为触发器,取消物理反馈 staticCollider.isTrigger = true; ``` 有刚体的物体设置触发器的方法如下: ```typescript //创建一个球体 var sphere = scene.addChild(new Laya.MeshSp...

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

19. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 72%]

...as MeshSprite3D; //给对象添加物理碰撞器组件 var lizardCollider:PhysicsCollider = lizard.addComponent(PhysicsCollider); //实例化一个网格碰撞盒 var meshShape:MeshColliderShape = new MeshColliderShape(); //设置网格碰撞盒的网格 meshShape.mesh = mesh; //设置碰撞盒为...

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

20. 多种碰撞器形状(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 72%]

...shSprite3D; //给对象添加物理碰撞器组件 var lizardCollider:Laya.PhysicsCollider = lizard.addComponent(Laya.PhysicsCollider); //实例化一个网格碰撞盒 var meshShape:Laya.MeshColliderShape = new Laya.MeshColliderShape(); //设置网格碰撞盒的网格 meshShape.mesh = mesh; //设...

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