From 294282c830acb56307cfc4b5474738a73bb3a97f Mon Sep 17 00:00:00 2001 From: Daddy32 Date: Fri, 12 Dec 2025 16:53:39 +0100 Subject: [PATCH] Loosen default scene links to allow closer contacts --- main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index 4c61321..9d2b96c 100644 --- a/main.js +++ b/main.js @@ -17,7 +17,7 @@ minChain: 3, palette: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"], ballRadius: 18, - link: { stiffness: 0.9, lengthScale: 1, damping: 0.05, lineWidth: 3 }, + link: { stiffness: 0.6, lengthScale: 0.5, damping: 0.08, lineWidth: 3 }, }; const scenes = [ @@ -25,12 +25,12 @@ id: "scene1", name: "Balanced (default)", config: { - gravity: 1, + gravity: 0.88, spawnIntervalMs: 520, minChain: 3, palette: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"], - ballRadius: 18, - link: { stiffness: 0.9, lengthScale: 1, damping: 0.05, lineWidth: 3 }, + ballRadius: 38, + link: { stiffness: 0.6, lengthScale: 0.5, damping: 0.08, lineWidth: 3 }, }, createBodies: (w, h) => [ Bodies.rectangle(w / 2, h + 40, w, 80, {