Loosen default scene links to allow closer contacts
This commit is contained in:
8
main.js
8
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, {
|
||||
|
||||
Reference in New Issue
Block a user