大约有 36 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0031 秒)
...不用我上传实例DEMO,就新建物理demo,把plane.addComponent(Laya.PhysicsCollider)改为addComponent(Laya.PolygonCollider)就报错了。打算测试这个组件的,测不了。 附件 : --> 2020-06-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20200618
...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
...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
...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
... 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
...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.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
... sZ))); //创建物理碰撞器 var staticCollider = box.addComponent(Laya.PhysicsCollider); //标记为触发器,取消物理反馈 staticCollider.isTrigger = true; ``` 有刚体的物体设置触发器的方法如下: ```typescript //创建一个球体 var sphere = scene.addChild(new Laya.MeshSp...
来源: Laya2.0_文档 发布时间: 20210715
...as MeshSprite3D; //给对象添加物理碰撞器组件 var lizardCollider:PhysicsCollider = lizard.addComponent(PhysicsCollider); //实例化一个网格碰撞盒 var meshShape:MeshColliderShape = new MeshColliderShape(); //设置网格碰撞盒的网格 meshShape.mesh = mesh; //设置碰撞盒为...
来源: Laya2.0_文档 发布时间: 20210714
...shSprite3D; //给对象添加物理碰撞器组件 var lizardCollider:Laya.PhysicsCollider = lizard.addComponent(Laya.PhysicsCollider); //实例化一个网格碰撞盒 var meshShape:Laya.MeshColliderShape = new Laya.MeshColliderShape(); //设置网格碰撞盒的网格 meshShape.mesh = mesh; //设...
来源: Laya2.0_文档 发布时间: 20210714