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

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

11. 物理引擎的使用 [ 95%]

...r Matter:Object = Browser.window.Matter; var Engine:* = Matter.Engine; var World:* = Matter.World; var Bodies:* = Matter.Bodies; var engine:* = Engine.create(); var world:* = engine.world; var render:* = Matter.Render.create({engine: engine, element: Render.canvas}); Engine.run(engine); Matter.Rende...

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

12. 物理引擎-布 [ 95%]

...#232628"; Stat.show(); setup(); })(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matt...

来源: Laya_示例 发布时间: 20251130

13. LayaRender问题 Matter在LayaRender下出现不正常问题 [ 93%]

...ar Engine = Matter.Engine, Runner = Matter.Runner, Render = Matter.Render, World = Matter.World, Bodies = Matter.Bodies, Body = Matter.Body, Pairs = Matter.Pairs, Vertices = Matter.Vertices, Constraint = Matter.Constraint, Composite = Matter.Composite, Composites = Matter.Composites, Events = Matter...

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

14. 请教一个3维旋转的问题 [ 92%]

...函数只是描述增量,目标态应该怎么定义 可以看到local和world坐标系不重合时,两个值依然保持一致   附件 : --> 2020-06-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 qzzz ...

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

15. 请问Laya如何使用第三方物理库 [ 91%]

....  因为oimo没有ts描述文件 :(   建立一个单例里面跑Cannon.World private constructor() { this.world = new CANNON.World(); this.world.allowSleep = true; Laya.timer.frameLoop(1, this, this.Step); } public Step() { this.world.step(1 / 60); }   再把CANNON.Body包装成组件 export cl...

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

16. 小米分包安装失败 [ 91%]

...折叠? 0 个回复被折叠 要回复问题请先登录 发起人 holle world 相关问题 安装layaAirIDE2 ,跟着官网敲hello world 例子,为什么不显示? 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译。 laya2.0引入第三方...

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

17. 物理引擎-Slingshot [ 91%]

...scaleMode = "showall"; setup(); })(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matt...

来源: Laya_示例 发布时间: 20251130

18. 物理Bodies绑定Laya.Sprite [ 91%]

...示 Laya.stage.scaleMode = "fixedwidth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender.create({ engine: this.engine, options: { ...

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

19. 没有人尝试使用3d物理引擎么 [ 90%]

...{ private var box:MeshSprite3D; private var sphereBody:Object; private var world:Object; private var CANNON:Object; public function LayaAir3D() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode=Stage.SCALE_FULL; Laya.stage.screenMode=Stage.SCREEN_VERTICAL; //开启统...

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

20. laya1.0 绘制物理引擎? [ 89%]

...etSprite(Laya.Render.canvas.getContext("2d")); debugDraw.SetDrawScale(this.worldScale); debugDraw.SetFillAlpha(0.5); debugDraw.SetFlags(PDynamic.b2DebugDraw.e_shapeBit | PDynamic.b2DebugDraw.e_jointBit); this.world.SetDebugDraw(debugDraw); Laya.timer.loop(1000/60,this,this.updateWorld); }    this....

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