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

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

1. 关于Matter的初始化问题 [ 100%]

...er.run(render); 代码是官方的。 以下这段是源码 function createContainer(render) { var con = render.container; spriteCon = new Laya.Sprite(); graphicsCon = new Laya.Sprite(); render.spriteContainer = spriteCon; render.graphicsContainer = graphicsCon; con.addChild(spriteCon); con.addChild...

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

2. matter.js 版本升级 [ 85%]

...候有bug,于是升级到0.11.1,但是用法变了,引擎例子中的container去掉了,不知道该怎么用了 engine = Matter.Engine.create( { enableSleeping: true, render: { container: gameWorld, controller: LayaRender, options: { width: stageWidth, height: stageHeight, wireframes: false...

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

3. 物理引擎中更换刚体贴图的方法 [ 78%]

...odies.circle(400, 600,34, { //密度 density: 1, //弹力 restitution:0.4, container:this.ballBox, render: { sprite: { texture: "comp/basketball.png", xOffset: 34, yOffset: 34, } } }); 我想通过代码随时更改这个刚体上的texture贴图,this.ball.render.sprite.texture="comp/2.png"这个...

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

4. 关于如何嵌入到网页 以及在网页中定位 [ 78%]

... LayaFlash下网页全屏适配? gps定位获取当前城市名字 #layaContainer 这个div是绝对定位吗?是否只能通过绝对定位的方法来定义container的位 问题状态 最新活动: 2017-05-16 17:43 浏览: 1931 关注: 3 人 chensa222 • 2017-05-17 18:10 大哥请允许我...

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

5. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 77%]

...; Matter.Engine.run(engine); var render = LayaRender.create({engine:engine,container:gameWorld,width:stageWidth,height:stageHeight,options:{wireframes:true,showAngleIndicator:true,showCollisions:true,showVelocity:true}}); LayaRender.run(render); mouseConstraint = Matter.MouseConstraint.create(engine...

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

6. 物理引擎显示旋转问题 [ 76%]

...reate({             engine: engine,             // container: gameWorld,             width: Laya.stage.stageWidth,             height: Laya.stage.stageHeight,             options: {                 wireframes: true,     ...

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

7. 缓存清除方法clearTextureRes [ 76%]

...方法时失败 请教下微信小游戏的内存和数据缓存? #layaContainer 这个div是绝对定位吗?是否只能通过绝对定位的方法来定义container的位 项目缓存是怎么实现的 关于cacheAsBitmap如果有动态内容,最好和静态内容分开,以便只缓存静...

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

8. 【js】物理引擎示例无法运行 [ 67%]

...方位于matter-RenderLaya.js 其中 92行 render 调试时并没找到 container 属性,所以 100 行con 为 undefined。   项目为新建,唯一运行代码从示例拷贝,无其他自写代码。 附件 : --> 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

9. 官网的LayaRender无法开启角度指示器 [ 67%]

...法开启角度指示器 var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: true, showAngleIndicator: true //无法开启 } });   哎,为什么你们习惯要开发者上传Demo给你们发现问题呢?自己开...

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

10. 在VIVO小游戏中 输入框无法调用起来手机键盘 [ 66%]

...blur(); if (Render.isConchApp) input.setPos(-10000, -10000); else if (inputContainer.contains(input)) inputContainer.removeChild(input); } } }   执行此方法的时候小键盘不出来 求教各位大佬是什么原因,   AS语言,VIVO小游戏 2019-10-10 添加评论 免费帖 --> 分享 ...

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