From 2f6de6315d3d552acbc40716fef613e8be540645 Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Wed, 25 Jun 2025 00:50:20 +0530 Subject: [PATCH] feat: make better walls Signed-off-by: Ameya Shenoy --- frontend/src/components/PhysicsSimulation.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/PhysicsSimulation.tsx b/frontend/src/components/PhysicsSimulation.tsx index dc779fc..8579127 100644 --- a/frontend/src/components/PhysicsSimulation.tsx +++ b/frontend/src/components/PhysicsSimulation.tsx @@ -86,22 +86,22 @@ export function World() { }); // Bottom wall (ground) - const ground = Bodies.rectangle(width / 2, height - 10, width, 20, { + const ground = Bodies.rectangle(width / 2, height + 250, width, 500, { isStatic: true, render: { fillStyle: bgColor }, }); // Left wall - const leftWall = Bodies.rectangle(-10, height / 2, 20, height + 40, { + const leftWall = Bodies.rectangle(-250, height / 2, 500, height + 40, { isStatic: true, render: { fillStyle: bgColor }, }); // Right wall const rightWall = Bodies.rectangle( - width + 10, + width + 245, height / 2, - 20, + 500, height + 40, { isStatic: true, @@ -110,7 +110,7 @@ export function World() { ); // Top wall - const topWall = Bodies.rectangle(width / 2, -10, width, 20, { + const topWall = Bodies.rectangle(width / 2, -250, width, 500, { isStatic: true, render: { fillStyle: bgColor }, });