Loosen default scene links to allow closer contacts

This commit is contained in:
Daddy32
2025-12-12 16:53:39 +01:00
parent 64acac1db0
commit 294282c830

View File

@@ -17,7 +17,7 @@
minChain: 3, minChain: 3,
palette: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"], palette: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"],
ballRadius: 18, 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 = [ const scenes = [
@@ -25,12 +25,12 @@
id: "scene1", id: "scene1",
name: "Balanced (default)", name: "Balanced (default)",
config: { config: {
gravity: 1, gravity: 0.88,
spawnIntervalMs: 520, spawnIntervalMs: 520,
minChain: 3, minChain: 3,
palette: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"], palette: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"],
ballRadius: 18, ballRadius: 38,
link: { stiffness: 0.9, lengthScale: 1, damping: 0.05, lineWidth: 3 }, link: { stiffness: 0.6, lengthScale: 0.5, damping: 0.08, lineWidth: 3 },
}, },
createBodies: (w, h) => [ createBodies: (w, h) => [
Bodies.rectangle(w / 2, h + 40, w, 80, { Bodies.rectangle(w / 2, h + 40, w, 80, {