大约有 1,208 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(1161) Laya2.0_文档(18) Laya3.0_文档(11) Laya3.0_api(6) Laya2.0_api(5) laya_api(4) Laya_示例(3)
...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
...#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
...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
...函数只是描述增量,目标态应该怎么定义 可以看到local和world坐标系不重合时,两个值依然保持一致 附件 : --> 2020-06-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 qzzz ...
来源: Laya_社区 发布时间: 20200630
.... 因为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
...折叠? 0 个回复被折叠 要回复问题请先登录 发起人 holle world 相关问题 安装layaAirIDE2 ,跟着官网敲hello world 例子,为什么不显示? 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译。 laya2.0引入第三方...
来源: Laya_社区 发布时间: 20201218
...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
...示 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
...{ 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
...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