大约有 98 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0027 秒)
...Laya.RigidBody['objs'][i]; if(element) if(element.owner){ if(element.owner.getComponent(Laya.CircleCollider)){return} if(element.owner.getComponent(Laya.BoxCollider)){ element['_sysPosToPhysic'](); element.owner.getComponent(Laya.BoxCollider)['resetShape'](); element['resetCollider'](); element.owne...
来源: Laya_社区 发布时间: 20200807
... } onAwake() { let rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); var lala=UIcontrol.FUI.bg.getComponent(Laya.RigidBody); this.rope=this.owner.getComponent(Laya.RopeJoint); this.rope.otherBody=lala; console.log(la...
来源: Laya_社区 发布时间: 20220413
...ggerEnter(e:Laya.RigidBody):void{ var cil:Laya.CircleCollider=this.owner.getComponent(Laya.CircleCollider); var rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); cil.enabled=false; rig.enabled=false; var self:Laya.Sprite= this.owner as Laya.Sprite; var ni:Laya.Animation=new Laya.Animatio...
来源: Laya_社区 发布时间: 20190721
...ouching[i]) { continue; } let bodyA: RigidBody = this.sensorCollider.owner.getComponent(RigidBody); let bodyB: RigidBody = body.owner.getComponent(RigidBody); let bodyOriA = bodyA.getBody(); let bodyOriB = bodyB.getBody(); let position = bodyOriB.GetPosition(); // let center = bodyOriA.GetPosition()...
来源: Laya2.0_示例 发布时间: 20241118
...:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getChildByName("Ball") as Sprite3D; this.ball.addComponent(BallScript2) BallScript2 onAwake this.ball = this.owner as Sprite3D; thi...
来源: Laya_社区 发布时间: 20200512
.... 2.但如果将Laya.RigidBody组件直接挂在预制体上,用this.owner.getComponent(Laya.RigidBody)设置后,在调用 this.owner.removeSelf()则不会抛错。 附件 : --> 2020-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20200119
...:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getChildByName("Ball") as Sprite3D; this.ball.addComponent(BallScript2) BallScript2 onAwake this.ball = this.owner as Sprite3D; thi...
来源: Laya_社区 发布时间: 20200515
...位置点数据): draw() { const pp = this.owner.getComponent(Laya.PolygonCollider).points; let points = this.pointS_to_pointA(pp) let owner: Laya.Sprite = this.owner as Laya.Sprite const ctx = owner.graphics; ...
来源: Laya_社区 发布时间: 20200428
...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): void Defined in laya/components/Compon...
来源: Laya3.0_api 发布时间: 20231115
...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): ...
来源: Laya3.0_api 发布时间: 20231115