• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 110 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)

11. iOS 接入微信登录,配置了"Other Linker Flags"中加入"-Objc -all_load"后编译不通过 [ 90%]

iOS 接入微信登录,配置了"Other Linker Flags"中加入"-Objc -all_load"后编译不通过 报错如图   也添加了库了   附件 : --> 2018-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 188*...

来源: Laya_社区 发布时间: 20180522

12. SphereCollider和MeshCollider碰撞检测的bug [ 89%]

...eCollider去碰撞MeshCollider时,代码实现如下: var meshCollider=other; if (Collision.sphereContainsBox(this.boundSphere,meshCollider._boundBox)!==/*laya.d3.math.ContainmentType.Disjoint*/0){ var positions=meshCollider.mesh._positions; for (var i=0,n=positions.length;i < n;i++){ if (Col...

来源: Laya_社区 发布时间: 20181114

13. laya.d3.component.Script3D [ 87%]

...法为虚方法,使用时重写覆盖即可 Script3D  onTriggerEnter(other:PhysicsComponent):void 开始触发时执行 此方法为虚方法,使用时重写覆盖即可 Script3D  onTriggerExit(other:PhysicsComponent):void 结束触发时执行 此方法为虚方法,使用时重写覆盖...

来源: Laya2.0_api 发布时间: 20190513

14. laya.components.Script [ 87%]

...方法为虚方法,使用时重写覆盖即可 Script  onTriggerEnter(other:*, self:*, contact:*):void 开始碰撞时执行 此方法为虚方法,使用时重写覆盖即可 Script  onTriggerExit(other:*, self:*, contact:*):void 结束碰撞时执行 此方法为虚方法,使用时重写...

来源: Laya2.0_api 发布时间: 20190513

15. 物理碰撞脚本和触发器脚本(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 84%]

...* 注:如相对移动速度过快,可能直接越过 */ onTriggerEnter(other) { this.owner.meshRenderer.sharedMaterial.albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在物品内时) * 注:如相对移动速度...

来源: Laya2.0_文档 发布时间: 20210715

16. 预制体添加刚体后,和其它刚体碰撞后不能修改角度和位置 [ 83%]

...后,和其它刚体碰撞后不能修改角度和位置  onTriggerEnter(other,self,contact)     {         var n=this.owner.rotation;         if(other.label === "heng"){             console.log("角度"+this.owner.rotation);             this.owner.rot...

来源: Laya_社区 发布时间: 20200817

17. 3D场景跳转到2D场景问题 [ 82%]

...如何删除3D场景,3D场景玩家 上面的代码: onCollisionEnter(other){ if(other.other.owner.name==="end"){ // this.owner.parent.removeSelf(); //删除自身场景 console.log(this.owner.parent) console.log(this.owner.parent.parent); //创建胜利的UI界面 let victoryScene=new VictorySc...

来源: Laya_社区 发布时间: 20190903

18. 物理碰撞脚本和触发器脚本(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 82%]

...如相对移动速度过快,可能直接越过 */ 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

19. 2.0TS3D物体碰撞,如何获取双方包围盒 [ 82%]

2.0TS3D物体碰撞,如何获取双方包围盒 onTriggerStay(other: Laya.PhysicsComponent): void { console.log("box2_onTriggerStay " + this.owner.name + " "+ other.owner.name); let b1:Laya.BoundBox = this.box.meshRenderer.boundingBox; let box2:Laya.MeshSprite3D = other.owner as Laya.MeshSprite3D...

来源: Laya_社区 发布时间: 20181116

20. 物理碰撞脚本和触发器脚本(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 82%]

...度过快,可能直接越过 */ 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