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,
|
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, {
|
||||||
|
|||||||
Reference in New Issue
Block a user