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

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

1. 物理引擎-布 [ 100%]

...oup = Matter.Body.nextGroup(true); var particleOptions = { friction: 0.00001, collisionFilter: { group: group }, render: { visible: false } }; var cloth = Matter.Composites.softBody(200, 200, 20, 12, 5, 5, false, 8, particleOptions); for (var i = 0; i < 20; i++) { cloth.bodies[i].isStatic = true; } ...

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

2. 物理引擎-Slingshot [ 76%]

... 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_示例 发布时间: 20240930

3. 自定义shader-地形shader [ 70%]

...ne/terrain/terrain.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED,...

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