大约有 30 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0033 秒)
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
... 158*****723 • 2019-08-31 17:52 有这样一个bug,RigidBody Trigger和PhysicsCollider Trigger 碰撞触发调用PhysicsCollider Trigger的onTriggerEnter后,RigidBody Trigger必须与其他物体发生碰撞后才能再次重新PhysicsCollider Trigger碰撞调用onTriggerEnter,RigidBody Trig...
来源: Laya_社区 发布时间: 20190828
...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
...放域?新建开放域项目直接发布报错? MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 问题状态 最新活动: 2021-03-09 11:57 浏览: 2711 关注: 1 人
来源: Laya_社区 发布时间: 20210308
...0, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加collidershape floorCollicar.colliderShape = new BoxColliderShape(10,0,2000); //加载精灵 Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.crea...
来源: Laya_社区 发布时间: 20190417
... 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
... 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
...理碰撞器 let planeStaticCollider = plane.addComponent(Laya.PhysicsCollider); //设置碰撞器 let planeShape = new Laya.BoxColliderShape(10, 0, 10); planeStaticCollider.colliderShape = planeShape; planeStaticCollider.friction = 2; ...
来源: Laya_社区 发布时间: 20201127
...,调用destroy,以前clone的对象也消失了 MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 关于图片不打包问题,并设置项目不打包输出目录,疑惑?????????????????????? 关于button的destroy不起作用的问题 怎么清理掉 Sprite3D 相关...
来源: Laya_社区 发布时间: 20171012
...在createChildren里加上createView调用代码么? MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 加载UI页面之后,怎么调用UI页面的图片,给图片加点击事件 app中, 调用window.open(url), 报错 调用原生js 问题状态 最新活动: 2017-12...
来源: Laya_社区 发布时间: 20171213