大约有 96 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0034 秒)
...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
...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
...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
.... 另外即便在laya中手动修正XCD_zhazhiji节点的rotation,它的PhysicsCollider.colliderShape还是歪的,我做了以下操作才变得正常: let colliderItem = this._rootNode.getChildByName("XCD_zhazhiji") as Laya.Sprite3D; colliderItem.transform.localRotationEuler = new Laya.Vector3(-...
来源: Laya_社区 发布时间: 20190320
用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
...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
...不到了,一直报空 (this.owner as Laya.Sprite3D).getComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider;log里面也没有这个碰撞组件的信息,只有刚体和脚本的 但是把刚体去掉以后再导出,代码再去获取这个物体身上的碰撞器就又能获得的到...
来源: Laya_社区 发布时间: 20200927
...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
... 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
...Z))) as Laya.MeshSprite3D; //创建物理碰撞器 var staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //标记为触发器,取消物理反馈 staticCollider.isTrigger = true; ``` 有刚体的物体设置触发器的方法如下: ```typescript //创建一个球体 var...
来源: Laya2.0_文档 发布时间: 20210714