大约有 3 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0017 秒)
...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_示例 发布时间: 20241124
... 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_示例 发布时间: 20241124
...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_示例 发布时间: 20241124