大约有 36 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0024 秒)
2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 2D物理碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 new this.box2d box2d 是undefined 请问这里的 this 指向是 ?? contact.getHitInfo = function () { var ...
来源: Laya_社区 发布时间: 20220819
碰撞contact问题 两个rigidbody3d碰撞的contacts里的每个点坐标都是一样的,如图 附件 : --> 2019-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 ...
来源: Laya_社区 发布时间: 20190828
contact.getHitInfo Laya2.6.0beta源码 Physics.ts类中 _sendEvent方法 contact.getHitInfo = function (): any { var manifold: any = new this.box2d.b2WorldManifold(); ... } 这里的this不是Physics类的当前对象,this.box2d undefined 附件 : --> 2020-03-27 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20200327
onTriggerEnter(other:*, self:*, contact:*)如何使用第三个参数 请问layaAir 2.0中在脚本中重写onTriggerEnter(other:*, self:*, contact:*)时,第三个参数是什么意思?如何使用第三个参数? 2019-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20190523
onTriggerEnter(other: any, self: any, contact: any) 参数使用 onTriggerEnter(other: any, self: any, contact: any) 参数使用 2020-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 ...
来源: Laya_社区 发布时间: 20200416
...法里怎么知道两个物品的碰撞强度?类似cocos creator里的contact.impluse.normalImpulses[0]方法获取碰撞冲量 2019-01-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ljs872 赞同来自: 临...
来源: Laya_社区 发布时间: 20190102
2d物理引擎中,onTriggerEnter函数中的contact参数的getHitInfo函数无效 此处应该改为 附件 : --> 2020-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 176*****795 赞同来自: contack.getHi...
来源: Laya_社区 发布时间: 20200708
Laya2D 物理关节的动态使用方法 以及contact.getHitInfo报错问题 有好多同学咨询:首次创建有效是否只能在编辑器设置otherBody怎么在代码设置 实现粘黏效果 核心代码如下: 只需要在addcomponent前将otherBody指向就行 -----------------------...
来源: Laya_社区 发布时间: 20220505
...自: 碰撞后产生三个参数: onTriggerEnter(other: any, self: any, contact: any): void { console.log(other); //被碰撞的对象 console.log(self); //自己 console.log(contact); //连接点对象, contact.getHitInfo(); //这里有碰撞点的信息 } 官方文档不全,或者说没...
来源: Laya_社区 发布时间: 20181026
...息。 Hierarchy CannonCollision Index Constructors constructor Properties contacts other Constructors constructor new CannonCollision(): CannonCollision Defined in laya/d3/physicsCannon/CannonCollision.ts:23 创建一个 Collision 实例。 Returns CannonCollision Properties contacts contacts: Cann...
来源: Laya3.0_api 发布时间: 20231102