大约有 111 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0031 秒)
...多个不同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.owner.globalToLoca...
来源: Laya_社区 发布时间: 20190609
... * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }; onTriggerStay(other){ console.log("onTriggerStay"); }; onCollisionEnter(other){ console.log("onCollisionEnter"); }; onCollisionStay(collision){ console.log("onCollisionStay"); } }...
来源: Laya_社区 发布时间: 20191215
...执行一次 */ onStart() {} /** * 开始触发时执行 */ onTriggerEnter(other) {} /** * 持续触发时执行 */ onTriggerStay(other) {} /** * 结束触发时执行 */ onTriggerExit(other) {} /** * 开始碰撞时执行 */ onCollisionEnter(collision) {} /** * 持续碰撞时执行 */ onCollisionS...
来源: Laya2.0_文档 发布时间: 20210714
...troy():void[override] 销毁。 HTMLCanvas getContext(contextID:String, other:* = null):Context 获取 Canvas 渲染上下文。 HTMLCanvas getMemSize():int 获取内存大小。 HTMLCanvas getTexture():Texture 获取texture实例 HTMLCanvas release():void 释放。 HTMLCanvas size(w:...
来源: Laya2.0_api 发布时间: 20190513
...lic onStart():void {} /** * 开始触发时执行 */ public onTriggerEnter(other:Laya.PhysicsComponent):void {} /** * 持续触发时执行 */ public onTriggerStay(other:Laya.PhysicsComponent):void {} /** * 结束触发时执行 */ public onTriggerExit(other:Laya.PhysicsComponent):void {} /** * 开...
来源: Laya2.0_文档 发布时间: 20210715
... {} /** * 开始触发时执行 */ public override function onTriggerEnter(other:PhysicsComponent):void {} /** * 持续触发时执行 */ public override function onTriggerStay(other:PhysicsComponent):void {} /** * 结束触发时执行 */ public override function onTriggerExit(other:PhysicsComponen...
来源: Laya2.0_文档 发布时间: 20210715
...邀请: 与内容相关的链接 提交 1 个回复 苏栢 赞同来自: other.owner.name == "zhangai1" 我一般用这个方式来判断 东西多就 other.owner.name[0] == "z" && ther.owner.name[1] == "h" 2019-07-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...
来源: Laya_社区 发布时间: 20190721
...。返回-1,包涵;0,相交;1,不相交 BoundFrustum equalsBoundFrustum(other:BoundFrustum):Boolean 判断是否与其他锥截体相等。 BoundFrustum equalsObj(obj:Object):Boolean 判断是否与其他对象相等。 BoundFrustum getCorners(corners:Vector.<Vector3>):void 锥截体...
来源: laya_api 发布时间: 20170929
...。返回-1,包涵;0,相交;1,不相交 BoundFrustum equalsBoundFrustum(other:BoundFrustum):Boolean 判断是否与其他锥截体相等。 BoundFrustum equalsObj(obj:Object):Boolean 判断是否与其他对象相等。 BoundFrustum getCorners(corners:Vector.<Vector3>):void 锥截体...
来源: Laya2.0_api 发布时间: 20190513
...,只会执行一次 Returns void Optional onTriggerEnter onTriggerEnter(other: PhysicsComponent | ColliderBase, self?: ColliderBase, contact?: any): void Defined in laya/components/Script.ts:58 3D物理触发器事件与2D物理碰撞事件,开始碰撞时执行 Parameters other: PhysicsComponen...
来源: Laya3.0_api 发布时间: 20231115