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

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

21. 加载3D场景报错:TypeError: bt.btBvhTriangleMeshShape create is not a function [ 84%]

...Shape._setPhysicsMesh (http://10.251.141.146:8900/bin ... 425:23)     at PhysicsCollider.set colliderShape [as colliderShape] (http://10.251.141.146:8900/bin ... 646:44)     at PhysicsCollider._parseShape (http://10.251.141.146:8900/bin ... 694:33)     at PhysicsCollider._parse (http://10.251....

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

22. laya阴影问题 [ 80%]

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

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

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

24. Unity导出插件导出的模型中Transform值有误 [ 78%]

....   另外即便在laya中手动修正XCD_zhazhiji节点的rotation,它的PhysicsCollider.colliderShape还是歪的,我做了以下操作才变得正常: let colliderItem = this._rootNode.getChildByName("XCD_zhazhiji") as Laya.Sprite3D; colliderItem.transform.localRotationEuler = new Laya.Vector3(-...

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

25. 用cannon测试 在U3D 中加MeshCollider后运行报 _addPhysicsCollider错误,取消后,则不会 [ 77%]

用cannon测试 在U3D 中加MeshCollider后运行报 _addPhysicsCollider错误,取消后,则不会 ncaught TypeError: Cannot read property '_addPhysicsCollider' of undefined     at PhysicsCollider._addToSimulation (laya.d3.js:28717)     at PhysicsCollider._onEnable (laya.d3.js:2896)     ...

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

26. Cannot read property '_physicsUpdateList' of null 错误 [ 76%]

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

27. 碰撞器获取问题 [ 75%]

...不到了,一直报空 (this.owner as Laya.Sprite3D).getComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider;log里面也没有这个碰撞组件的信息,只有刚体和脚本的 但是把刚体去掉以后再导出,代码再去获取这个物体身上的碰撞器就又能获得的到...

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

28. 给mesh添加物理组件就报错 [ 74%]

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

29. 2.6.1物理bug [ 73%]

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

30. 物理触发器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 72%]

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

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