大约有 178 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0034 秒)
...碰撞方法一帧执行一次的具体代码是什么样的吗? 是在OnTriggerEnter方法中实现的吗?谢谢 2019-07-27 0 0 分享 微博 QZONE 微信 laya21126 赞同来自: 这个方法GetType的调用者为null 2019-07-31 0 0 分享 微博 QZONE 微信 jaychai521 赞同来自: 同遇到...
来源: Laya_社区 发布时间: 20190724
...是第二次场景切换回来时,再次触发时,却没有报错? onTriggerEnter(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:L...
来源: Laya_社区 发布时间: 20190721
...改为绿色 * 注:如相对移动速度过快,可能直接越过 */ onTriggerEnter(other) { this.owner.meshRenderer.sharedMaterial.albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在物品内时) * 注:如相...
来源: Laya2.0_文档 发布时间: 20210715
...染混乱) 微信6.7.2版本3D显示BUG 关于2D物理碰撞无法触发OnTriggerEnter、OnTriggerStay、OnTriggerExit的bug image loadimage 加载网络图片BUG 问题状态 最新活动: 2018-03-16 15:14 浏览: 751 关注: 2 人 smallsow • 2018-03-16 14:53 SCALE_FIXED_WIDTH : String = fixedw...
来源: Laya_社区 发布时间: 20180316
...引擎鼠标问题 Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,120元有偿悬赏解答 Laya270bete ,带刚体模型运动中缩放后被强制复位到0 微信小游戏《砖块》 pk游戏,看看谁的手速快,体验感非常棒 问题状态 最新活动:...
来源: Laya_社区 发布时间: 20170704
...绿色 * 注:如相对移动速度过快,可能直接越过 */ public onTriggerEnter(other:Laya.PhysicsComponent):void { ((this.owner as Laya.MeshSprite3D).meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑...
来源: Laya2.0_文档 发布时间: 20210715
...相对移动速度过快,可能直接越过 */ override public function onTriggerEnter(other:PhysicsComponent):void { ((owner as MeshSprite3D).meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = new Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后...
来源: Laya2.0_文档 发布时间: 20210714
...stanceJoint 与多个不同rigBody做距离关系绑定 代码片段: onTriggerEnter(other: any, self: any, contact: any) { let pointes = contact.getHitInfo().points; let potSelf = new Laya.Point(pointes[0].x, pointes[0].y); let potOther = new Laya.Point(pointes[0].x, pointes[0].y); self.ow...
来源: Laya_社区 发布时间: 20190609
...cess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemByCreateFun("deathEffect", this.createEffect, this); effec...
来源: Laya_社区 发布时间: 20191019
...Laya里的表现不如Unity中的圆润。 关于2D物理碰撞无法触发OnTriggerEnter、OnTriggerStay、OnTriggerExit的bug 2.0iDE bug laya2.0ide 显示bug 问题状态 最新活动: 2018-09-11 12:01 浏览: 2226 关注: 2 人
来源: Laya_社区 发布时间: 20180910