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

大约有 30 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0029 秒)

1. 2.6.1物理bug [ 100%]

... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...

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

2. 2.6物理问题 [ 98%]

... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...

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

3. 我竟然被射线检测这个小功能给难了一天了 [ 96%]

...) physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log("相机位置",(this.owner.getChildByName("Main Camera") as ...

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

4. laya2 物理引擎好多问题 [ 95%]

... ni.wrapMode=0; ni.play(0,false);  var man:Laya.Sprite= this.owner.parent.getChildByName('man') as Laya.Sprite; var cil2:Laya.PolygonCollider=man.getComponent(Laya.PolygonCollider); var rig2:Laya.RigidBody=man.getComponent(Laya.RigidBody); var mou:Laya.MouseJoint=man.getComponent(Laya.MouseJoint); ...

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

5. 3D场景跳转到2D场景问题 [ 94%]

...ctorySceneUI {  constructor() { super();   } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScene); } } 求大佬教学 2019-09-03 添加评论 免费帖 ...

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

6. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 90%]

...VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 let mat = new L...

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

7. Laya 问题合集 希望会的大神能帮我解答一下,谢谢 [ 89%]

... 获取到 你这十个子物体  然后分别加上就好  this.owner.getChildByName("子节点name")  可以获取到子节点 2019-05-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Gordon Gok 相关问题 看了其他引擎才...

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

8. 发射射线检测不到,物体有包围盒 [ 88%]

...     self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(null, function (sp) {                        ...

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

9. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 82%]

...出时会在角色外包裹一层sprite3D) this.roleModel = this.owner.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.An...

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

10. 射线检测报错,outHitInfo.sprite3D=null; [ 77%]

...load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); thi...

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