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

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

1. UI-Clip [ 100%]

...ew Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; counter.x = (Laya.stage.width - count...

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

2. 高级应用-寻路导航 [ 97%]

...osition = new Laya.Vector3(0, 0, 0); this._upVector3 = new Laya.Vector3(0, 1, 0); this._tarPosition = new Laya.Vector3(0, 0, 0); this._finalPosition = new Laya.Vector3(0, 0, 0); this._quaternion = new Laya.Quaternion(); this.index = 0; this.curPathIndex = 0; this.nextPathIndex = 1; this.pointCount =...

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

3. 射线检测-射线检测 [ 94%]

...()); //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 3)); camera.clearColor = null; Laya.loader.create(["../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm", "../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunm...

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

4. 物理引擎-Slingshot [ 77%]

... Matter.MouseConstraint.create(engine, { constraint: { angularStiffness: 0.1, stiffness: 2 }, element: Render.canvas }); Matter.World.add(engine.world, mouseConstraint); render.mouse = mouseConstraint.mouse; } function initWorld() { var ground = Matter.Bodies.rectangle(395, 600, 815, 50, { isStatic:...

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